PDA

View Full Version : Read complex xml file and load data in store



tavinashb
7 Dec 2011, 6:38 AM
Hi,
I am getting response from server as




<?xml version='1.0' ?>
<Root>
<ArrayList>
<Feature>
<AccountFeatures/>
<DisplaySignup>1</DisplaySignup>
<DisplayUpgrade>1</DisplayUpgrade>
<Id>1</Id>
<LongDesc>Unlimited number of designs </LongDesc>
<Price>0.0</Price>
<ShortDesc>Feature 1</ShortDesc>
</Feature>
<ArrayList>
<Root>


I want to create store and load only "Feature" node from xml response in store . Can you help?

tobiu
7 Dec 2011, 9:27 AM
http://docs.sencha.com/ext-js/4-0/#!/api/Ext.data.reader.Xml



reader: {
type : 'xml',
root : 'Root',
record: 'Feature'
}