Documents assumed to be valid

TopLeaf does not test XML or SGML documents for validity if a DTD is found. However, XML documents must be well-formed according to section 2.1 of the XML recommendation. If a document is not well-formed TopLeaf may signal an error or produce incorrect output.