the document to be checked, passed as a string
CheckException if the document is not well formed
CheckException's toString() method will yield the complete hierarchy of parse failure (the XML equivalent of a stack trace), giving the line and column number of every failure at every level.
Check an entire XML document for well-formedness