Guest User

Untitled

a guest
Nov 21st, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <entities>
  3. <entity>
  4. <name>
  5. Mation Jr, Mr Auto
  6. </name>
  7. <legalname>
  8. Mr Auto Mation Jr
  9. </legalname>
  10. </entity>
  11. <entity>
  12. <name>
  13. Mation Sr, Mr Auto
  14. </name>
  15. <legalname>
  16. Mr Auto Mation Sr
  17. </legalname>
  18. </entity>
  19. </entities>
  20.  
  21. #include <_MSXML.au3>
  22. ; Set the XML file
  23. $xmlpath = @ScriptDir & "Entity.xml"
  24.  
  25. ; Fetch All Entities from XAML
  26. $ENTITIES = _MSXML_SelectNodes($oXml, "entities/entity")
  27.  
  28. If ($ENTITIES[0] > 0) Then
  29. ; This part works and will iterate for x amount of entities provided
  30.  
  31. ; Fetch Entity as pos $i
  32. For $i = 1 To $ENTITIES[0] Step 1
  33.  
  34. ; How can I iterate through attributes from ENTITIES[$i] ??
  35.  
  36. Next
  37. Else
  38. MsgBox(4096, 'Error', 'No entity was provided')
  39. EndIf
Add Comment
Please, Sign In to add comment