Envelope validation comes before serialization
Node types, names, attributes, namespace bindings, document order, and character content are checked before XML is emitted. Unsupported properties do not become surprise markup.
Validate a lossless-xml-ast-v1 document tree and serialize its declared elements, attributes, text, comments, CDATA, processing instructions, and namespaces as XML.
Inputs are limited to 1 MiB and stay in this browser tab.
Nothing is placed in a URL, account, or remote log.
XML 1.0, bounded, and local
Arbitrary JSON has no universal XML representation. This route intentionally accepts one versioned structural envelope so every object has documented meaning and invalid node combinations fail visibly.
Node types, names, attributes, namespace bindings, document order, and character content are checked before XML is emitted. Unsupported properties do not become surprise markup.
A structurally equivalent document can use different quotes, entity references, empty-element syntax, indentation, or line endings. Compare represented nodes when lexical identity is not required.