ToolCabana

XML-Formatierer

Formatiere übergebenes XML, ohne externe Entitäten aufzulösen.

Favorites are saved in this browser. Find them in My favorites.

XML-Formatierer

Your input stays in this browser unless stated otherwise
Clear your input, files and result, and restore the default settings.
Load sample text to explore what this tool can do. This replaces your current input.
0 charactersClear the source text.

So verwendest du XML-Formatierer

XML formatter checks supplied XML for well-formedness and reformats the markup with consistent indentation from 1 to 8 spaces. Syntax problems are reported with a line number. DOCTYPE and entity declarations are refused, so no external entities are ever resolved during formatting.

  1. Füge die Quelle in den Eingabe-Editor ein oder lade das integrierte Beispiel.
  2. Lege die Einrückung in Leerzeichen fest.
  3. Führe den XML-Formatierer aus, prüfe die Ausgabe und verwende dann die verfügbaren Bedienelemente zum Kopieren oder Herunterladen.

Was dieses Tool unterstützt

Formatiere übergebenes XML, ohne externe Entitäten aufzulösen.

Einrückung (Leerzeichen)
Range: 1 to 8

Grenzen und Verarbeitung

Textvorgänge akzeptieren im Allgemeinen bis zu 2.000.000 Zeichen. Einzelne Parser, Generatoren und Formeln haben zusätzliche Grenzen, die in ihren Bedienelementen angezeigt werden.

Beispielquelle
<root><name>ToolCabana</name><count>2</count></root>

Häufige Fragen

Why does the XML formatter reject my DOCTYPE?

Documents containing DOCTYPE or ENTITY declarations are refused with an error. Remove the declaration to format the remaining markup; this prevents external or expanding entities from being processed.

How does the XML formatter report errors?

The XML is validated before formatting. If it is not well-formed, such as an unclosed tag, you get the line number and a description of the problem instead of formatted output.

Can I change the indentation of formatted XML?

Yes. The Indent spaces setting accepts whole numbers from 1 to 8, with 2 as the default. Short elements that fit on one line may be kept on a single line.

Wo wird meine Eingabe verarbeitet?

Dieser Vorgang verarbeitet seine Quelle in deinem Browser. Kopieren und Herunterladen sind ausdrückliche Aktionen; die Quelleingabe wird nicht in einem Konto oder Verlauf gespeichert.

Welche Eingabelimits gelten?

Textvorgänge akzeptieren im Allgemeinen bis zu 2.000.000 Zeichen. Einzelne Parser, Generatoren und Formeln haben zusätzliche Grenzen, die in ihren Bedienelementen angezeigt werden.