TIDY exception errors - TidyMemToMem

Hi all,

Trying to convert submitted HTML to well-formed XML. I keep getting an error
: 


ERROR
Number: -2147352567
Description: HTML Tidy exception
Source: TidyCOM.TidyObject.1

It keep falling over on TidyMemToMem - any ideas?


CODE : 

' *** convert submitted HTML to well-formed XML  ***
Set objTidy = Server.CreateObject("TidyCOM.TidyObject")
        
objTidy.Options.Doctype = "loose"
objTidy.Options.InputXML = True
objTidy.Options.TidyMark = True
        
strXML = objTidy.TidyMemToMem(strInput)
        
Set objTidy = Nothing




Regards,

Matt


CAUTION - This message may contain privileged and confidential information
intended only for the use of the addressee named above. If you are not the
intended recipient of this message you are hereby notified that any use,
dissemination, distribution or reproduction of this message is prohibited.
If you have received this message in error, please notify the sender
immediately.

Received on Monday, 6 August 2001 10:16:24 UTC