Question

Does anyone know of a good program where I can paste in xml (getting it from a System.out in my java class) and it will format the xml so it's not a really long line of text?

Was it helpful?

Solution

I like XMLPad. It has a nice formatter plus a bunch of visualisers such as tree view and grid view. There is also a nice interactive XPath query tool and probably many more features.

OTHER TIPS

Visual Studio does this (you can download the express verison for free).

If not, Try Liquid XML - it's free, and it's also got an xpath visualiser which is very handy.

Did you try your favorite browser? You can't really paste it, but you can open any XML file and both IE and Firefox will display a nice, collapsible tree view of the XML hierarchy.

If you have it already, try visual studio (otherwise it is perhaps too much to download =)) Visual Studio formats the xml very nice, you can edit it, and you have a collapsible tree view. Just paste it in visual studio then press ctrl+k+d and you get formatted xml code.

Notepad++ if you don't want to use a XML editor.

If you'd like more control over how the formatted text looks, you could try an XML formatter

You can reformat XML files in Eclipse using Source > Format

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top