Tool Hub

XML प्रारूपक

XML दस्तावेज़ों को सुंदर रूप से प्रिंट, छोटा और सत्यापित करें

XML दस्तावेज़ फ़ॉर्मेट करें — कॉन्फ़िगर करने योग्य इंडेंटेशन के साथ pretty-print या टैग के बीच खाली स्पेस हटाकर minify करें। सत्यापन ब्राउज़र के बिल्ट-इन DOMParser का उपयोग करता है।

आउटपुट
<?xml version="1.0" encoding="UTF-8"?>
<library>
  <book id="1">
    <title>
      1984
    </title>
    <author>
      George Orwell
    </author>
  </book>
  <book id="2">
    <title>
      Brave New World
    </title>
    <author>
      Aldous Huxley
    </author>
  </book>
</library>

कैसे उपयोग करें

  1. Paste your XML document into the input.
  2. Choose Pretty-print to indent the tree or Minify to collapse it to a single line.
  3. The document is validated with the browser's DOMParser, and any syntax error is reported with its location.
  4. Copy the result; everything is processed in your browser.

उदाहरण

  • Pasting <root><item id="1">a</item><item id="2">b</item></root> and pretty-printing nests each <item> on its own indented line under <root>.
  • If a closing tag is missing, the DOMParser check reports the line and column of the error so you can fix malformed XML quickly.

उत्पादन में उपयोग से पहले आउटपुट सत्यापित करें। कोई वारंटी नहीं — देखें शर्तें.