K
K Viltersten
I noticed that when i use:
foreach (XmlNode tag in tagList[0].ChildNodes) {}
i even collect the comments, so i needed to
remake it as follows.
foreach (XmlNode tag in tagList[0].ChildNodes)
if (tag.Name != "#comment") {}
Is there a recommended way to omit all
comments in the first place? I mean,
something along the lines of:
XmlDocument document = new XmlDocument();
document.Load( XmlReader.Create( path ) );
XmlElement root = document.DocumentElement;
root.SkipTheSupidComments();
foreach (XmlNode tag in tagList[0].ChildNodes) {}
i even collect the comments, so i needed to
remake it as follows.
foreach (XmlNode tag in tagList[0].ChildNodes)
if (tag.Name != "#comment") {}
Is there a recommended way to omit all
comments in the first place? I mean,
something along the lines of:
XmlDocument document = new XmlDocument();
document.Load( XmlReader.Create( path ) );
XmlElement root = document.DocumentElement;
root.SkipTheSupidComments();