Sample XML
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<MPL Version="2.0" Title="MCWS - Files - 33876" PathSeparator="\">
<Item>
<Field Name="FName1">123456</Field>
<Field Name="FName2">abcdef</Field>
<Field Name="FName3">qwerty</Field>
</Item>
<Item>
<Field Name="FName1">654321</Field>
<Field Name="FName2">fedcba</Field>
<Field Name="FName4">!@#$%^</Field>
</Item>
</MPL>
Code: Select all
FName1 FName2 FName3 FName4
123456 abcdef qwerty
654321 fedcba !@#$%^
So.... what the better way?
I can load the XML doc using
Code: Select all
xmlPath := "test.mpl"
xmlDoc := ComObjCreate("MSXML2.DOMDocument.6.0")
xmlDoc.async := false
xmlDoc.load(xmlPath)
Code: Select all
for item in xmlDoc.getElementsByTagName("Field") {
Text := item.text
MsgBox % Text
}
Any hints would be a great help!
Thanks
Nathan