I have an XML document as given below I want a treeGrid to be generated out of it, so please help me in developing a dataschema for the same, with treeGrid code.
I have been trying, but I could not, so please help me, i.e. I want a dataSource with dataschema and datafield so that i can get a treeGrid for the follwing XML,
I want the treeGrid depending on the element and the type, and attribute name of the element tag is the Name and type is the type element as shown below
Name | Type ("treegrid")
<scheema>
<element name="PARENT">
<element ref="parent1"></element>
<element ref="parent2"></element>
<element ref="parent3"></element>
<element ref="parent4"></element>
<element ref="parent5"></element>
</element>
<element name="parent1">
<type>
Mercedes
</type>
<complex>
<choice>
<element name="parent11"></element>
<element name="parent12"></element>
<element name="parent13"></element>
<element name="parent14"></element>
<element name="parent15"></element>
</choice>
</complex>
</element>
<element name="parent2">
<type>
BMW
</type>
<complex>
<choice>
<element name="parent21"></element>
<element name="parent22"></element>
<element name="parent23"></element>
<element name="parent24"></element>
<element name="parent25"></element>
</choice>
</complex>
</element>
<element name="parent3">
<type>
AUDI
</type>
<complex>
<choice>
<element name="parent31"></element>
<element name="parent32"></element>
<element name="parent33"></element>
<element name="parent34"></element>
<element name="parent35"></element>
</choice>
</complex>
</element>
<element name="parent4">
<type>
HONDA
</type>
<complex>
<choice>
<element name="parent41"></element>
<element name="parent42"></element>
<element name="parent43"></element>
<element name="parent44"></element>
<element name="parent45"></element>
</choice>
</complex>
</element>
<element name="parent5">
<type>
HYUNDAI
</type>
<complex>
<choice>
<element name="parent51"></element>
<element name="parent52"></element>
<element name="parent53"></element>
<element name="parent54"></element>
<element name="parent56"></element>
</choice>
</complex>
</element>
</scheema>
I appriciate your help,
Is very essential for me.
<element name="PARENT">
<element ref="parent1"></element>
<element ref="parent2"></element>
<element ref="parent3"></element>
<element ref="parent4"></element>
<element ref="parent5"></element>
</element>
<element name="parent1">
<type>
Mercedes
</type>
<complex>
<choice>
<element name="parent11"></element>
<element name="parent12"></element>
<element name="parent13"></element>
<element name="parent14"></element>
<element name="parent15"></element>
</choice>
</complex>
</element>
<element name="parent2">
<type>
BMW
</type>
<complex>
<choice>
<element name="parent21"></element>
<element name="parent22"></element>
<element name="parent23"></element>
<element name="parent24"></element>
<element name="parent25"></element>
</choice>
</complex>
</element>
<element name="parent3">
<type>
AUDI
</type>
<complex>
<choice>
<element name="parent31"></element>
<element name="parent32"></element>
<element name="parent33"></element>
<element name="parent34"></element>
<element name="parent35"></element>
</choice>
</complex>
</element>
<element name="parent4">
<type>
HONDA
</type>
<complex>
<choice>
<element name="parent41"></element>
<element name="parent42"></element>
<element name="parent43"></element>
<element name="parent44"></element>
<element name="parent45"></element>
</choice>
</complex>
</element>
<element name="parent5">
<type>
HYUNDAI
</type>
<complex>
<choice>
<element name="parent51"></element>
<element name="parent52"></element>
<element name="parent53"></element>
<element name="parent54"></element>
<element name="parent56"></element>
</choice>
</complex>
</element>
</scheema>
I appriciate your help,
Is very essential for me.

Help Me in preparing Datasource for the XML For TreeGrid
28 August, 2008 - 12:52 — yudiHi Sandy,
I am afraid it won't be possible to render tree grid with that provided XML.Tree grid data structure is similiar to list grid .The way tree grid to identify parent or child node is using "parentId" attribute for child node and "hasChild" attribute for parent node. That's why the XML data should be something like this:
<element id="parent1" hasChildren="true">
<type>Hyundai</type>
</element>
<element id="child1" parentId="parent1">
<type>Hyundai 1 </type>
<price>123456</price>
</element>
<element id="child2" parentId="parent1">
<type>Hyundai 2</type>
<price>654321</price>
</element>
</scheema>
~Yudi