
February 23rd, 2004, 06:04 PM
|
 |
Hello World :)
|
|
Join Date: Mar 2003
Location: Hull, UK
|
|
On the subject of what types to use for containers i'd probably go for a mix of list and dictionaries. This way you can use the list to keep the nodes/groups ordered and then use dictionary to store the different node names i.e.
Code:
nodes = [{'name1': 'value', 'name2': 'value'}, {'name1': 'value', 'name2': 'value'}] and so on...
from an XML doc something like this:
Code:
<group>
<name1>value</name1>
<name2>value</name2>
</group>
<group>
<name1>value</name1>
<name2>value</name2>
</group>
Note: none of this is ment to work  i'm simply trying to explain the basic idea...
Hope this is of some help,
Mark.
__________________
programming language development: www.netytan.com – Hula
Last edited by netytan : February 23rd, 2004 at 06:09 PM.
|