Check if the input is a valid XML file.
The input to be parsed.
If the input valid, return the XML document. If the input is invalid, this returns an HTMLElement explaining the problem.
Check if the input is a valid XML file.