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