PDA

View Full Version : xml reader



rich_montana
5 Jun 2008, 8:46 PM
hello. i was wonder if you could use the same operations you use for mappings ie "parent > child" with the xml reader record property.

i have xml that goes as such:


<xml>
<reply>
<identity>
<tag1/>
<tag2/>
<tag3/>
<identity/>
<tag4>
</identity>
<reply>


unfortunately i dont have a lot of control w/ the xml being produced im just supposed to work with it. the problem is if i set my record as such :



reader: new Ext.data.XmlReader({
record: 'identity',
....



i the data modeling part will see the xml as try to create 2 records, one for each identity tag.
when i do



reader: new Ext.data.XmlReader({
record: 'reply > identity',
....



the reader doesn't seem to parse this at all and i get now records. any idea?
thanks you!
--RICH