XML फ़ॉर्मेटर
उचित इंडेंटेशन के साथ XML दस्तावेज़ फ़ॉर्मेट और सुंदर बनाएं।
XML Formatter के बारे में
XML Formatter XML documents को prettify और properly indent करता है, compressed single-line या poorly formatted XML को consistent indentation और line breaks के साथ structured, human-readable form में transform करता है। यह well-formedness के लिए XML validate करता है और unclosed tags, missing attribute quotes, या illegal characters जैसी syntax errors का exact location report करता है। XML SOAP web services, Maven और Gradle build files, Android और iOS resource files, RSS/Atom feeds, SVG graphics और अनगिनत configuration और data exchange formats में उपयोग किया जाता है।
उपयोग कैसे करें
input area में अपना raw, minified, या poorly indented XML पेस्ट करें और Format पर click करें। टूल document को parse करता है, उसकी well-formedness validate करता है, और अपनी line पर प्रत्येक nested element के साथ properly indented version output करता है। settings से अपनी preferred indentation style चुनें: 2 spaces, 4 spaces, या tab character। यदि XML malformed है, तो पहली error के line number और character position के साथ error message दिखाई देता है। formatted आउटपुट copy करें या इसे single line पर compress करने के लिए minify option का उपयोग करें।
सामान्य उपयोग के मामले
- web service debugging के दौरान human inspection के लिए minified या single-line SOAP API request और response bodies को prettify करना
- code review के दौरान improved readability के लिए Maven pom.xml, Spring beans XML और Android layout XML files format करना
- text editor में path data, gradients, या filter definitions manually edit करने से पहले complex SVG files beautify करना
- feed validation के लिए parser errors diagnose करने और element nesting structure verify करने के लिए RSS और Atom feed XML indent करना
- diff comparison और documentation के लिए SAP IDOC, Oracle, या SharePoint जैसे enterprise systems से verbose XML exports reformat करना