Reformat XML

From EggeWiki
Jump to navigation Jump to search

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>