Pretty printing xml

November 16, 2007 at 4:37 pm | In programming, xml | Leave a Comment

Simple problems should have simple solutions. As a mathematician I do know, that’s not always the case; but I still feel it should be. So how simple is pretty printing xml?

The simplest (in terms of usability on a linux machine) I’ve come up with so far:

tidy -i -xml -asxml input.xml

Blog at WordPress.com. | Theme: Pool by Borja Fernandez.
Entries and comments feeds.