RevealTheme logo

Formattatore di XML

Formatta e abbellisce i documenti XML. Utile per SOAP, sitemap, feed RSS e file di configurazione.

Come usare questo strumento

  1. 1

    Paste your XML into the text box (one line or many — minified XML works too).

  2. 2

    Read the indented result that appears in the output panel below; it updates automatically as you type, with no button to press.

  3. 3

    Select the formatted text in the output panel and copy it manually into your editor or file.

Che cos'è il formattatore di XML?

XML è più antico di JSON, ma è ancora ampiamente utilizzato nelle integrazioni aziendali, nei feed RSS/Atom, nelle sitemap e nei file di configurazione. Questo formattatore aggiunge un'indentazione e interruzioni di riga coerenti, in modo che l'XML profondamente annidato risulti leggibile. La convalida rispetto a un XSD specifico richiede un validatore XML dedicato.

Casi d'uso comuni

  • Make a one-line SOAP response from a web service readable so you can trace which element holds a fault or value.

  • Re-indent a minified sitemap.xml or RSS/Atom feed before scanning it for missing or duplicated entries.

  • Tidy a hand-edited Maven pom.xml, Android layout, or Spring config so the nesting is obvious at a glance.

  • Pretty-print an XML API payload pulled from logs or a network capture for a quick visual review.

  • Turn an exported config blob (build files, .csproj, web.xml) into an indented form before diffing it against another version.

  • Format a snippet for a bug report or documentation so reviewers can follow the element hierarchy.

Domande frequenti

Posso convalidare rispetto a un XSD?
Non con questo strumento: usi xmllint o un validatore XSD online.
E l'XML con spazi dei nomi?
La formattazione funziona bene; gli spazi dei nomi vengono conservati così come sono.

Strumenti correlati