Data & JSON

XML Editor

Edit and format XML in your browser, check well-formed syntax, inspect node paths, and copy or download the document. No XSD or DTD validation.

Content reviewed:

About this tool

Edit XML with syntax highlighting, formatting, minification and a node-path browser. Validate checks whether the document is well-formed XML; invalid input reports an error location when available.

Select a node path to copy it and inspect its value. The path list describes the parsed document structure; it is not a general XPath query engine.

Best use cases

  • Inspect a configuration file or XML response.
  • Find unmatched tags before handing a document to another system.

How to use it

  1. Paste XML, import a file or load the built-in example.
  2. Choose Format or Validate, and resolve syntax errors before continuing.
  3. Filter node paths and select a result to inspect its value. Copy or download the current document.

Format a well-formed XML document

Input

<root><item id="1">Hello</item></root>

Output

<root>
  <item id="1">Hello</item>
</root>

The tag structure is valid. In contrast, <root><item></root> has a missing closing item tag and fails validation.

Scope and limits

  • Checks well-formed XML syntax, not conformance to XSD, DTD or a business schema.
  • Node-path browsing is not full XPath evaluation. Formatting changes whitespace; review documents where text spacing matters before exporting.

Data processing

XML parsing and editing run in the browser. Draft persistence requires your preference consent; imported file contents are not included in analytics.

FAQ

Does Validate check my XSD?

No. It checks XML parsing and tag structure. Use a schema validator for XSD or DTD constraints.

Why does an XML document fail validation?

Common causes include unmatched tags, unquoted attributes, multiple root elements or unescaped ampersands. Review the reported location and surrounding markup.

Technical references

Related tools

More in this category