XML and Data Structure

Hi,

How are you doing? I am just try to find a better data structure for my XML Document. My XML Document is typically contains one-2-many nodes with in elements. Check a sample below.

<task id="Task1" type="Type1" Name="SomeName">

<sub-task id="SomeTask">

<action id="SomeAction" resultMethod="SomeMethod">

<conditional expression="SomeExpression" resultMethod="SomeMethod" />

</action>

</sub-task>

<sub-task id="SomeTask">

<action id="SomeAction" resultMethod="SomeMethod"/>

<action id="SomeAction" resultMethod="SomeMethod" />

</sub-task>

<sub-task id="SomeTask">

<action id="SomeAction" resultMethod="SomeMethod"/>

</sub-task>

<sub-task>....</sub-task>

</task>

<task>.....</task>

I couldnt find typical Data Structures (Binary Trees or Heap) for this document. Any help to identify data structure will be helpful.

Message was edited by:

Sridhar_H

[1496 byte] By [Sridhar_Ha] at [2007-11-27 8:09:17]
# 1
you can have a class created with Task and arrya of subtask attribute..
mshanua at 2007-7-12 19:52:15 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...