Format, minify and validate XML with proper indentation and clear error messages.
Formatting preserves CDATA, comments, processing instructions and the XML declaration. Validation uses the browser XML parser.