<colspec colnum="1" colname="col1" colwidth="*"></colspec>
<colspec colnum="1" colname="col1" colwidth="*"/>
XmlElement.IsEmpty = true;
<colspec colnum="1" colname="col1" colwidth="*" />
XmlDocument xDoc = new XmlDocument(); xDoc.PreserveWhitespace = true; xDoc.Load(InputFile); foreach (XmlElement xEle in xDoc.SelectNodes("descendant::*[not(node())]")) { xEle.IsEmpty = true; } xDoc.Save(InputFile);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)