Jump to content

XML Using MS XML DOM


Recommended Posts

Hi,

I am using MS XML DOM ActiveX to parse through XML file I have. I want to retrieve comments from the XML document and I tried using "comment()" function along with the xPath String.

It seems to be not working. Actually when I try to retrieve all the elements from an XML document, it does not get the comments at all. Any way out of this.

Thanks...

Link to comment

As candius pointed out, you're looking for nodes, not elements. Sticking with DOM methods, if you iterate over each node and compare its nodeType, you're looking for ones of the NODE_COMMENT (8) variety.

If you want more than hints, show us what you have so we have a starting point.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.