XML formatting with xmllint

To get a nice output of any xml file:

xmllint --format <file>

To strip all spaces, tabs and newlines:

xmllint --noblanks <file>

For sorting look at xmlstar.sourceforge.net
Dette indlæg blev udgivet i Knowledge Base, Old Base. Bogmærk permalinket.

Skriv et svar