saxonica.com

saxon:parse-html()

saxon:parse($html as xs:string) ==> document-node()

This function takes a single argument, a string containing the source text of an HTML document. It returns the document node (root node) that results from parsing this text using the TagSoup parser. The TagSoup jar file must be on the classpath. It may be downloaded from http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-1.2.jar.

This function is useful where an HTML document is embedded inside another using CDATA. It can also be used in conjunction with the unparsed-text() function to read HTML from filestore. Note that the base URI of the document is not retained in this case.

Next