Code Robo
Formatter
Comparator
Tester
Merger
Converter
Utility
Java Code Complience
Validator
EncoderDecoder
Virtual Service
XML Formatter With Sorting
       Talk to EasyAssistant

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 or other sources or typed in any editor. Along with formatting, sometimes we need to sort the xml also alphabetically.

This Easycodeforall online user-friendly XML formater tool has the capbility of formating any size 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 it provides multiple indentation option(e.g. 2 space, 8 space) also to choose . It does beautify and show the formatted XML with color which is easily readable. 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.

XML:(* Required): It is required.
 
Indentation : Mode : Sort the output after formatting in alphabetical order.
Remove Comments. Remove XML Decleration Line Width :

It supports very bix XML upto 10 MB

It has following features:

  • Provides option to remove comments while formattiong
  • Supports multiple indentation (2 space, 3 space, 4 sapce and tab)
  • Provides option to remove comments while formattiong
  • Sor the XML after formatting
  • Provides option for multiple line length / width
  • Display formatted XML highlighting the xml syntax
  • User can copy the formatted XML and/or download it by just a button click



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.
Pre Conditions:
  1. XML needs to be well formed
Steps To Execute:
  1. Add XML content in the text area.
  2. Select Sort Output check box if you want sort the output alphabetically .
  3. Select text mode. Default text mode is Normalization .
  4. Select indentation level. Default indentation level is 2 space .
  5. Click on the Format XML button
Output: Output is the formatted xml content and it provide an optiom to view the xml to view the xml the browser
Post Your Comment:
Name :
Email ( Optional) :
Comments / Suggestion (* Required) It is required: :
: