PDA

View Full Version : Xml data response reading



jorgeluislay
10 Nov 2012, 10:43 AM
For the profis might be very easy.

How do i read this:


<data>
<exceed>false</exceed> <-- this !
<item>
<..>
<..>
<..>
</item>

<item>
<..>
<..>
<..>
</item>

<item>
<..>
<..>
<..>
</item>
</data>


or if it is easier, how can i read this:



<data exceed="true"> <-- this !

<item>
<..>
<..>
<..>
</item>

<item>
<..>
<..>
<..>
</item>

<item>
<..>
<..>
<..>
</item>
</data>


In both cases i have the record: item.. and his fields. But i have to jump a level up.

For going in a level inside, you use:


<whatever>
<more_Stuff>
nice
</more_Stuff>
<whatever>

mapping: whatever > more_stuff

for this:


<whatever more_Stuff='nice'>
<whatever>

mapping: whatever @ more_stuff

jorgeluislay
11 Nov 2012, 1:29 PM
I get it. The soluton was to find it not with extjs but with Ext.DomQuery..

If someones need it, than i post the solution. I just will recommend te read a javascript manual :D