Entrada y opciones
Sangra el XML para que sea legible y comprueba que todas las etiquetas están cerradas en orden. El contenido de texto, CDATA y los comentarios nunca se reescriben.
Todo el cálculo y la conversión se ejecutan en local en el navegador mediante el motor V8 o WebAssembly. Los archivos y el texto nunca salen de tu dispositivo.
Acerca de
Machine-written XML arrives as one endless line. This formatter re-indents every element at its nesting depth, keeps text nodes, comments and CDATA verbatim, and verifies that every open tag has a matching close tag in order.
Cómo usar
Formatos y especificaciones
Preguntas frecuentes
Is text content reflowed?
No. Text nodes, attributes, comments and CDATA are preserved exactly; only inter-tag whitespace is normalised.
What validation is performed?
Tag balance: every close tag must match the nearest open tag, and no tag may remain unclosed.
Are self-closing tags handled?
Yes, both the <tag/> form and HTML-style void elements.
Does it resolve entities?
No. Entities are left as written; expansion would change the document's bytes.
Limitaciones
- No DTD or schema validation; only tag balance.
- Whitespace inside text nodes is not normalised.
- Namespaced attributes are formatted but never reordered.