Over a million developers have joined DZone.

Remove XML Comments

·

XmlNodeList list = xmlDoc.SelectNodes("//comment()");
foreach(XmlNode node in list)
  node.ParentNode.RemoveChild(node);
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}