Reformat XML

From EggeWiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Using the XMLStarlet command line tool, one can easily reformat xml. A shortcut for this is to reformat the xml on your clipboard. This little command will read your clipboard, reformat it, and write back to the clipboard.

<geshi> getclip | xml fo | putclip </geshi>