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 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:55 UTC