Parses XML text into a DOM document, refusing a malformed one rather than returning a partial tree.
the document text
the parsed DOM document
an IndeterminateError with the syntax-error status when the text is not well-formed or has no root element
Parses XML text into a DOM document, refusing a malformed one rather than returning a partial tree.