I’ve been able to get ExtJS grids to create from external XML files. I usually define stores as follows:
var store = new Ext.data.Store({
model: 'PersonModel',
proxy: {
type: 'ajax',
url : 'MyXML.xml',
reader: {
type : 'xml',
record: 'Person'
}
}
});
I have an XML fragment stored in one of the fields, so let’s just say I have it in a local variable. How can I implement the store to read from a variable/string and not from a file? Thanks.
I got it to work. The trick was to define a memory type proxy and then pass a parsed xml object to it.