PDA

View Full Version : How to read/parse nested XML



vivekscript
7 Feb 2011, 8:40 PM
Hi,

I am new to Sencha. I need your help to parse a nested XML.
My XML structure is as follows:

<data type="Object">
<items type="Array">
<item type="Object">
<shapetype type="Number">0</shapetype>
<type type="Number">0</type>
<subtype type="String"><![CDATA[Default]]></subtype>
<use_icon type="Boolean">false</use_icon>
<page type="String"><![CDATA[4]]></page>
<points type="Array">
<item type="Object">
<x type="Number">638</x>
<y type="Number">377</y>
</item>
<item type="Object">
<x type="Number">746</x>
<y type="Number">397</y>
</item>
</points>
</item>
<item type="Object">
<shapetype type="Number">0</shapetype>
<type type="Number">1</type>
<subtype type="String"><![CDATA[Default]]></subtype>
<use_icon type="Boolean">false</use_icon>
<path type="String"><![CDATA[assets/help/index.html]]></path>
<points type="Array">
<item type="Object">
<x type="Number">425</x>
<y type="Number">589</y>
</item>
<item type="Object">
<x type="Number">534</x>
<y type="Number">613</y>
</item>
</points>
</item>
</items>
</data>

Can anyone tell me how to read the data of each tag from this XML?