Installera ZYBERMART

Öppna alla verktyg från hemskärmen eller Dock, i ett eget fönster. Verktyg du har använt fungerar även offline.

XML-formaterare

Formatera XML med snygga indrag eller minifiera den, och kontrollera att den är välformad, med raden för eventuella fel.

How to format XML

  1. Paste your XML: a sitemap, RSS feed, SVG, config file, SOAP message or any other XML.
  2. Choose Format to indent it with one element per line, or Minify to put it on one line.
  3. If the XML isn’t well-formed, the error tells you which line to fix.

Common XML errors

  • A tag isn’t closed: every <item> needs a </item>, or write it as <item/>.
  • A bare & or < in text: write &amp; and &lt;, or wrap the text in <![CDATA[ … ]]>.
  • More than one root element: wrap everything in a single outer element.
  • Unquoted attributes: id=5 must be id="5".

Frequently asked questions

Does it check that my XML is valid?

It checks that the XML is well-formed: every tag is closed, tags are nested properly, attributes are quoted and there's one root element. If not, it shows the browser's error with the line to look at. It doesn't validate against a schema (XSD or DTD).

Are comments and CDATA kept?

Yes. Comments, CDATA sections, processing instructions and the XML declaration are kept when formatting. Minify can remove comments too.

What does minify do?

It removes the whitespace between tags, and optionally comments, to make the file as small as possible. Text inside elements is kept exactly.

Is my XML uploaded?

No. Formatting runs in your browser, so it's fine for config files, sitemaps, feeds and SOAP messages with private data.

Logga in på ZYBERMART

Ha dina CV:n, fakturor, flashcards, anteckningar och sparade verktyg på alla dina enheter. Det är gratis, och verktygen fungerar likadant utan konto.

eller

Inget lösenord behövs. Genom att logga in godkänner du villkoren. Läs hur vi hanterar dina data i integritetspolicyn.

Ditt konto

När du loggar ut finns en kopia av ditt arbete kvar i den här webbläsaren. På en delad dator bör du rensa webbläsardata efteråt.

Vad vill du skapa?

Designer

Sociala medier

Dokument

Studier

Redigera

Visa alla 282 verktyg