in reply to Re: Removing XML comments with regex
in thread Removing XML comments with regex

I did the following (barring corner cases as mentioned previously) and it seems to strip comments just fine:
cat t.xml | perl -e '$/ = ""; $_ = <>; s/<!--.*?-->//gs; print;'
which gave the output:
<Node_A> <Node_B> <Node_C> </Node_C> </Node_B> </Node_A>