Example #1
0
 /// <summary>
 /// Removes all descendant comment nodes for this document or element.
 /// </summary>
 /// <param name="xml">The XML from which to remove all comment nodes.</param>
 public static void RemoveAllComments(this XContainer xml)
 {
     xml.DescendantComments().Remove();
 }