Is there a command line tool that can remove comments from an XML file? Or do I need to write a small program that makes use of an XML parser to do this?
Update: I'm not interested in solutions that only handle a subset of all possible XML files.
For instance a regexp can't handle XML parsing.