BrianGilbert
asked on
XML SelectSingleNode
I am trying to extract all child nodes in an XML document with a certain name, using the SOAP toolkit.
At the moment I cannot extract anything further down than the root, I need to find nodes in the body of the XML.
My XML document uses a bespoke namespace, so I am using this syntax:
Set objNode = oRoot.selectSingleNode("te stNS:Resul ts")
Where Results is the root node. This works and I get a node back.
But I am looking 5 levels down into the XML for what I really want.
When I try this (retrieve a node below the root ):
Set objNode = oRoot.selectSingleNode("te stNS:Resul ts/Level2" )
I get nothing.
What am I doing wrong?
At the moment I cannot extract anything further down than the root, I need to find nodes in the body of the XML.
My XML document uses a bespoke namespace, so I am using this syntax:
Set objNode = oRoot.selectSingleNode("te
Where Results is the root node. This works and I get a node back.
But I am looking 5 levels down into the XML for what I really want.
When I try this (retrieve a node below the root ):
Set objNode = oRoot.selectSingleNode("te
I get nothing.
What am I doing wrong?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.