Formattatore XML
Formatta l'XML fornito senza risolvere entità esterne.
Formattatore XML
Come usare Formattatore XML
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.
- Incolla l'origine nell'editor di input, oppure carica l'esempio integrato.
- Imposta gli spazi di rientro.
- Esegui il formattatore XML, esamina il risultato, poi usa i controlli disponibili per copiare o scaricare.
Cosa supporta questo strumento
Formatta l'XML fornito senza risolvere entità esterne.
- Spazi di rientro
- Range: 1 to 8
Limiti ed elaborazione
Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.
Origine di esempio
<root><name>ToolCabana</name><count>2</count></root>
Domande frequenti
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.
Dove viene elaborato il mio input?
Questa operazione elabora i dati di origine nel tuo browser. Copia e download sono azioni esplicite; l'input di origine non viene salvato in un account né in una cronologia.
Quali sono i limiti di input?
Le operazioni di testo accettano in genere fino a 2.000.000 di caratteri. Parser, generatori e formule singoli applicano limiti aggiuntivi mostrati dai relativi controlli.