XmlComment reached with GetElementByTagName?

  • Thread starter Thread starter Zürcher See
  • Start date Start date
Z

Zürcher See

If I have a xmlNode that point to a xmlComment, the name of the node is
"#comment", but if I try to get all the comment with the
GetElementByTagName("#comment"), the xmlNodeCollection is empty.
There is a way to get the xmlNodeCollection of the xmlComment?
 
A comment isn't defined as an element and that is probably why
GetElement... doesn't return it.
You may have to check all nodes for the comment node type.
 
Back
Top