Nick's posterous http://nicktj.posterous.com Most recent posts at Nick's posterous posterous.com Thu, 12 Jan 2012 12:41:00 -0800 Quickly tidy XML in vim on Linux http://nicktj.posterous.com/quickly-tidy-xml-in-vim-on-linux http://nicktj.posterous.com/quickly-tidy-xml-in-vim-on-linux

If you find yourself staring at an ugly representation of an XML doc, use the following command to tidy it up using xmllint:

$!xmllint --format --recover - 2>/dev/null

Permalink | Leave a comment  »

]]>
http://posterous.com/images/profile/missing-user-75.png http://posterous.com/users/heOPIhURBYqT0 Nick Jones nicktj Nick Jones