Dont know if this topic should go here but... here it goes.
I'm slowly working and learning more and more about livecode and XML and now I would need some help on how to get the all elements from the XML to populate a datagrid
so, I know I can find specific nodes on the tree, but how can I get the whole node to work it and add to the datagrid vector ?
let say I have this XML:
Code: Select all
<tokens>
<single tknID="1">
<name>New token 1</name>
</single>
<stack tknID="3">
<name>New tokens stack 3</name>
</stack>
<stack tknID="4">
<name>New tokens stack 4</name>
</stack>
<pool tknID="5">
<name>New tokens pool 5</name>
</pool>
<single tknID="6">
<name>New token 6</name>
</single>
<pool tknID="7">
<name>New tokens pool 7</name>
</pool>
</tokens>
How could I read the XML to correctly add all nodes to the array and send it to the datagrid ? will I have to add one node at a time or can I add all nodes at once ?
Many thanks in advance,
- Miguel