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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top