I have a page which is accessing a service returning the XML, and I want to iterate through all the XML nodes without calling them individually in config of XmlReader.
For example, if my XML record is this:
Code:
<ds>
<firstName>Joe</firstName>
<lastName>Smith</lastName>
<userID>123</userID>
<address>123 A Street</address>
...
</ds>...
and this is my data reader creation
Code:
var myReader = new Ext.data.XmlReader({
totalRecords:'TotalCount',
record: 'ds',
id: 'userID'
}, [
'userID','firstName', 'lastName'
]));
How can I avoid listing all the properties, and get all of them at once?
Thanks