Is there a VS2010 macro to remove all comments in an XML file

desatnikmmm

New Member
I would like a Visual Studio macro to remove all comments from a given XML file. For example, given this:\[code\]<?xml version="1.0" encoding="UTF-8" ?><!-- Comment 1--><config> <!-- Comment 2 --> <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError></config>\[/code\]I would like to get this:\[code\]<?xml version="1.0" encoding="UTF-8" ?><config> <abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError></config>\[/code\]I've searched for editors that do this and VS macros but can't find anything.
 
Back
Top