Random IT Stuff
Random IT stuff, mainly *NIX
Saturday, 18 October 2014
Strip comments from an XML file
Ever had an xml file bloated with comments? Here's a great one-liner for striping them.
tidy -quiet -asxml -xml -indent -wrap 1024 --hide-comments 1 file.xml
Thanks to http://stackoverflow.com/questions/1464697/stripout-comments-from-xml
Newer Posts
Older Posts
Home
Subscribe to:
Posts (Atom)