in reply to Re: Removing XML comments with regexin thread Removing XML comments with regex
cat t.xml | perl -e '$/ = ""; $_ = <>; s/<!--.*?-->//gs; print;' [download]
<Node_A> <Node_B> <Node_C> </Node_C> </Node_B> </Node_A> [download]