Hi All!
How can I obtain the full XML path of any given XML Node? For example,
if my XML document looks like this:
---BEGIN XML DOC---
<Tag1>
<Tag2>
<Tag3></Tag3>
</Tag2>
</Tag1>
---END XML DOC---
And my code looks like this:
---BEGIN VB6 CODE---
Dim objCustNode As MSXML2.IXMLDOMNode
Dim objCustNodeList As MSXML2.IXMLDOMNodeList
objCustXML.Load("myFile.xml")
Set objCustNodeList = objCustXML.selectNodes("//*")
For Each objCustNode In objCustNodeList
Debug.Print objCustNode.nodeName
Next
---END VB6 CODE---
At the point in the For Next loop where objCustNode.nodeName is equal
to "Tag3", I want to know what's it's FULL path is, ie,
"//Tag1/Tag2/Tag3".
How can I do this? Thank you!