willybhere
Technical User
Hi,
i am trying to extract a value from a multi level xml. i am able to select the items based on one criteria but am having no luck adding a second criterion which would them allow me to target that item to extract the value i need.
Set NodeList = xmlDocTS.documentElement.selectNodes(itemNode)
Set ConditionNode1 = xmlDocTS.documentElement.selectNodes(transtypeNode)
Set ConditionNode2 = xmlDocTS.documentElement.selectNodes(settledateNode)
Set ValueNode = xmlDocTS.documentElement.selectNodes(transidNode)
For Each Node In ConditionNode1
If Node.text = "AW" Then
msgbox "trans type matches " &Node.text
Else msgbox (Node.text)
End If
Next
could anyone point out some examples i can use that may help.
regards, wil
i am trying to extract a value from a multi level xml. i am able to select the items based on one criteria but am having no luck adding a second criterion which would them allow me to target that item to extract the value i need.
Set NodeList = xmlDocTS.documentElement.selectNodes(itemNode)
Set ConditionNode1 = xmlDocTS.documentElement.selectNodes(transtypeNode)
Set ConditionNode2 = xmlDocTS.documentElement.selectNodes(settledateNode)
Set ValueNode = xmlDocTS.documentElement.selectNodes(transidNode)
For Each Node In ConditionNode1
If Node.text = "AW" Then
msgbox "trans type matches " &Node.text
Else msgbox (Node.text)
End If
Next
could anyone point out some examples i can use that may help.
regards, wil