XML Tools

Tools for XML documents, feeds, SOAP messages and WSDL service descriptions. Every tool checks well-formedness with the browser's standards-based XML parser and reports the line and column of the first problem.

Popular XML Tools

All XML Tools (5)

About XML

XML (Extensible Markup Language) is defined by the W3C XML 1.0 Recommendation. A document is well-formed when it has exactly one root element, every start tag has a matching end tag in the same case, elements nest without overlapping, attribute values are quoted, and the characters < and & are escaped in text.

Being well-formed is different from being valid: validity means the document also follows a schema such as an XSD or DTD. These tools check well-formedness; they do not validate against a schema.

Which tool to use

XML that arrives on one line goes into the XML Formatter; SOAP envelopes and WSDL files are ordinary XML and are handled by the same tool. If a document is rejected, the XML Validator page explains the common parser messages. For a large feed or export, the XML Viewer is easier to navigate, because repeated elements are grouped and counted. Use the XML Editor to fix a document in place, XML Minify to remove indentation before sending it, and XML to JSON when the next system expects JSON.

Frequently asked questions

Do the XML tools validate against an XSD schema?

No. They check that XML is well-formed. Schema validation needs the schema file and a validating parser.

Why does my XML fail on an ampersand?

A bare & starts an entity reference in XML. Write &amp;amp; in text, or wrap the text in a CDATA section.

Are namespaces supported?

Yes. Prefixed names such as soap:Envelope are kept as written, and a prefix that is not declared is reported as an error.

Common use cases

  • Reading a single-line SOAP response from a log
  • Checking a feed or sitemap before publishing it
  • Inspecting a WSDL to find operations and types
  • Shrinking XML before storing or sending it

Example

<order id="1001">
  <item sku="A-1" qty="2"/>
  <note>Leave at door &amp; ring</note>
</order>

One root element, quoted attributes, a self-closing element and an escaped ampersand.