Text and data

How to format XML and read a parse error

Parse XML to locate well-formedness errors before trying to change its formatting. PageUtil XML Formatter formats accepted input and reports parse failures. A successful parse does not establish conformance to a schema or acceptance by the application that consumes the document.

Formatted XML is well-formed. The first error is the first break, and an XSD is not applied.
Formatted XML is well-formed, the first error is the first break, and an XSD is not applied.

What to run

Open XML Formatter. It stays in the browser.

How to read the result

Formatted output means well-formed.

The error is the first well-formedness break: unclosed tag, bare &, or mismatched close.

The page does not validate against an XSD.

What to open next

Open HTML Escape if you are about to paste the XML into HTML. It stays in the browser.

Open Find and Replace for a repeated bad character, then re-parse. It stays in the browser.

References

Related tools

Frequently asked questions

Does formatted XML mean it passed an XSD?

Formatted XML is well-formed, and an XSD is not applied. The page does not validate against an XSD.

What does the first XML parse error identify?

The error is the first well-formedness break: unclosed tag, bare &, or mismatched close. The first error is the first break.

Does XML Formatter stay in the browser?

XML Formatter stays in the browser. Formatted output means well-formed.

Need help with a tool or found a bug?

Report an issue directly to engineering. No accounts required — all client data remains private on your device.

Report an Issue →