Parses an XML document with xmldom, never throwing.
Refuses an empty document, one over the size cap, one xmldom reports an
error or fatal error for, and one with no root element. Warnings do not
refuse.
Parameters
xml: any
the document text
what: any
what the document is, for the refusal; document if omitted
Parses an XML document with xmldom, never throwing.
Refuses an empty document, one over the size cap, one xmldom reports an error or fatal error for, and one with no root element. Warnings do not refuse.