This file contains an example of how QueryPath can be used to generate XML.
QueryPath's ability to handle arbitrary XML comes in handy. Fragments of HTML can be composed as external XML documents, and then inserted selectively into an HTML document as needed. Just remember: Ever XML document -- even just a string -- needs to begin with the XML declaration:
CLASS NAME | DESCRIPTION |