移除某个元素下的全部子节点
如
可以使用 doc.SelectSingleNode("/root/configs").InnerXML="";
注意使用 doc.SelectSingleNode("/root/configs").RemoveAll();会将 configs的name="c" 属性节点也一并移除
移除某个元素下的全部子节点
如
可以使用 doc.SelectSingleNode("/root/configs").InnerXML="";
注意使用 doc.SelectSingleNode("/root/configs").RemoveAll();会将 configs的name="c" 属性节点也一并移除