MakeXMLDocumentFromHTML (open)

Creates an XML Document out of a HTML document blob

Syntax

LOADLIB "wh::xml/dom.whlib";

OBJECT FUNCTION MakeXMLDocumentFromHTML(BLOB xmlfile, STRING encoding, BOOLEAN readonly, BOOLEAN noimplied)

Parameters

BLOB xmlfile

HTML file to parse

STRING encoding

HTML file encoding, if known

BOOLEAN readonly

If true, create a read-only XML document

BOOLEAN noimplied

If true, don't generate the implied etc tags

Return value

OBJECT

A new document object. use GetParseErrors() to check for syntax errors