W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 2005

Tidy + XHTML from .NET

From: James Jackson <jaja@bluewire-technologies.com>
Date: Fri, 26 Aug 2005 13:39:16 +0100
Message-ID: <8CA68025CBD6ED4EAC709547439BF2BD02726C@epro102.clifton.bluewire-technologies.com>
To: <html-tidy@w3.org>
I've written a simple c#.Net wrapper for the Tidy API binary as provided by Cory Nelson. It all works fine and dandy, but Xhtml output seems to be malfunctioning (single quotes not being converted to double quotes, single tags not being internally terminated - basically it's outputting well formed HTML but not XHTML).

It appears my method for setting options is somehow wrong. I've imported the TidyOptGetIdForName method, passed in 'TidyXhtmlOut', which returns an integer value of 83. I then pass this value into an import of TidyOptSetBool. I've tried using .Net marshalling to pass the boolean value, and have tried a variety of integer values (0, 1, -1) but all seem to do nothing, despite the return code being 0.

Had anybody got any hints?
Received on Saturday, 27 August 2005 06:00:37 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 3 April 2012 06:13:55 GMT