Hi,
I have a tree that I need to save on an XML file.
The tree is made up by nodes that can have different types,
say NodeTypeA, NodeTypeB,... NodeTypeX.
All nodes have some common properties, i.e. "node name", and all nodes belonging to the same type have the same specific properties that can be different from the specific properties of nodes belonging to another type.
NodeTypeA
{
prt A
prt B
prt C
prt E
prt F
}
NodeTypeB
{
prt A
prt B
prt G
prt Z
prt F
}
NodeTypeX
{
prt A
prt B
prt H
prt I
prt C
}
Clearly each node can have children nodes.
Someone could suggest me the best way to represent such tree in XML?
thanks so much for your help.
I have a tree that I need to save on an XML file.
The tree is made up by nodes that can have different types,
say NodeTypeA, NodeTypeB,... NodeTypeX.
All nodes have some common properties, i.e. "node name", and all nodes belonging to the same type have the same specific properties that can be different from the specific properties of nodes belonging to another type.
NodeTypeA
{
prt A
prt B
prt C
prt E
prt F
}
NodeTypeB
{
prt A
prt B
prt G
prt Z
prt F
}
NodeTypeX
{
prt A
prt B
prt H
prt I
prt C
}
Clearly each node can have children nodes.
Someone could suggest me the best way to represent such tree in XML?
thanks so much for your help.