1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
| 'Set xmlDoc = CreateObject("Microsoft.XMLDOM")
Set xmlDoc=CreateObject("msxml2.domdocument")
xmlDoc.setProperty "SelectionLanguage", "XPath" 'case sensitive
'xmlDoc.Async = "false"
xmlDoc.Async = false
'xmlDoc.Load("XML_initial.xml")
bret=xmlDoc.Load("XML_initial.xml")
if bret then
For Each Lignes In xmlDoc.selectNodes("//itmOrgData")
For Each POS in Lignes.selectNodes("vOrgDataType")
if POS.text="POS" then
set node=POS.selectSingleNode("following-sibling::vOrgDataValue")
if not(node is nothing) then
MsgBox node.text
end if
end if
Next
Next
end if
'MsgBox "vOrgDataValue: " & vOrgDataValue
' "ITM : " & ITM & vbcrlf & _
' "ITEMNO : " & ITEMNO
Set xmlDoc = Nothing |
Partager