Reputation:
I'm new to VBScript in dealing with XML files. I noticed that there are some vbscript commands to select certain nodes like .ChildNodes
, .documentElement
, .lastChild
and stuff like that.
However, I can reach to any node using XPath along with selectNodes
, or selectSingleNode
. So is the XPath not fully compatible with vbscript and so I have to use some vbscript commands to reach specific node/nodes?
Upvotes: 2
Views: 210
Reputation: 1277
xmlDoc.setProperty "SelectionLanguage", "XPath"
That's almost from When does XPath property have to be set to XML DOM object?
Upvotes: 2