Formateador XML
Imprime XML con sangría uniforme y ajuste de atributos opcional.
Entrada
Resultado
Cómo usar
How to format XML
Paste XML and press Format. Nested elements are indented and parse errors are reported with a message.
- Paste XML into the input editor.
- Press Format.
- Copy the beautified document.
Preguntas frecuentes
Does it validate XML too?
Yes. If the document is not well formed the formatting stops and the error is displayed.
Which indentation is used?
Two spaces by default, and you can switch to four spaces or tabs from the toolbar.
Herramientas relacionadas
Validador XML
Comprueba que un documento XML esté bien formado y muestra una descripción clara del error.
Minificador XML
Elimina los espacios entre etiquetas XML para producir la carga más pequeña.
XML a JSON
Convierte XML en JSON gestionando atributos y elementos repetidos de forma sensata.
Formateador YAML
Analiza y vuelve a serializar YAML con sangría uniforme y validación.
Validador YAML
Valida la sintaxis YAML y obtén un error preciso cuando la sangría o la estructura son incorrectas.
YAML a JSON
Convierte documentos YAML en JSON para API y aplicaciones JavaScript.