Reputation: 1081
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?
Upvotes: 2
Views: 1136
Reputation: 1222
you can try something online such as https://onlinetool.app/ext/xml_formatter
Upvotes: 0
Reputation: 5589
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.
Upvotes: 1
Reputation: 323
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.
Upvotes: 3
Reputation: 135285
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.
Upvotes: 3
Reputation: 200796
If you'd like more control over how the formatted text looks, you could try an XML formatter
Upvotes: 0
Reputation: 23759
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.
Upvotes: 2