FANDOM


one of the things I hate about xml, is that without syntax highlighting its very hard to see which directives are commented and which live.


This is often a problem, when you are in root profile, on some tomcat box, and you are inspecting the server.xml for changes...

tidyEdit

tidy -quiet -asxml -xml -indent -wrap 95 --hide-comments 1 

xmlstarletEdit

xmlstarlet c14n --without-comments old.xml > new.xml


xmllintEdit

xmlllint --format



sedEdit

cat <XML_file> | sed 's///' | sed '//d'

http://www.prasannatech.net/2010/12/stripping-comments-xml-file.html

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.