XMl is heaviliy used almost in all applications. Very frequently to debug an issue we take XML from log which is unformatted. Formatter is required to format the XML captured from log. Along with formatting, sometimes we need to sort the xml also alphabetically.
This Easycodeforall XML formater has the capbility of formating an XML and sorting it alphabetically after formatting. Its free and available online! It can sort both elements and attributes in the XML document. Sorting is optional and its done based on user input selection. This Xml formater format XML string with 4 space indentation by default. But you can choose different indentation. It does beautify and show the formatted XML with color. Elements are shown in Orange color and attributes are shown in blue color. Just need to provide the XML string content as input. No need to download the tool. It supports upto 10 MB XML
Here To Watch A Demo On It(https://youtu.be/gjscMFjxNSw).
How It Works:
First it check its welformedness of the input XML document. If its a
wellformed XML, it converts it into Java String. Then recreate the XML
document from Java String with indentation. It does just formatting,
does not re-position any element or attributes. If XML us not
wedllformed it thorws exception.
Steps To Execute:
- XML needs to be well formed
- Add XML content in the text area.
- Select Sort Output check box if you want sort the output
- Select text mode. Default text mode is Normalization .
- Select indentation level. Default indentation level is 2 space
- Click on the Format XML button
Output is the formatted xml content and it provide an optiom to view the
xml to view the xml the browser