Help with revXML

william humphrey bill at bluewatermaritime.com
Sun Dec 8 19:08:11 EST 2013


Hi

I have a large XML file like this:

<Country_List>
<Country>
<Country_Name>AFGHANISTAN</Country_Name>
<ISO_Code>AF</ISO_Code>
</Country>
<Country>
<Country_Name>ALBANIA</Country_Name>
<ISO_Code>AL</ISO_Code>
</Country>
<Country>
<Country_Name>ALGERIA</Country_Name>
<ISO_Code>DZ</ISO_Code>
</Country>
<Country>
<Country_Name>AMERICAN SAMOA</Country_Name>
<ISO_Code>AS</ISO_Code>
</Country>
<Country>
<Country_Name>ANDORRA</Country_Name>
<ISO_Code>AD</ISO_Code>
</Country>
<Country>
<Country_Name>ANGOLA</Country_Name>
<ISO_Code>AO</ISO_Code>
</Country>
<Country>
<Country_Name>ANGUILLA</Country_Name>
<ISO_Code>AI</ISO_Code>
</Country>
<Country>
<Country_Name>ANTARCTICA</Country_Name>
<ISO_Code>AQ</ISO_Code>
</Country>
</Country_List>

And I tried:

 put revXMLChildNames(pTree, "Country_List/Country", return,
"Country_Name", true) into tCountries

And all I get is just the first child name and not the list.  I get just one

Country_Name[1]  (and it stops there)  -- I'd also like to get the
ISO_Code too as a list with a tab between it and the country name
but....




More information about the use-livecode mailing list