How to access the comments inside the XML document using XPath?
For example:
<table> <length> 12 </length> <!--Some comment here--> </table>
I want to access the ‘Some comment here’.
Thanks…
EDIT: I am using MSXML DOM ActiveX and the command comment() seems to be failing… Any idea why?
With the path
you can select all comments in the /foo/bar element. May depend on your language of choice, of course. But generally this is how you do it.