XmlReader behaviour different between IE6 and Firefox
Posted on November 23rd, 2008 by jane
I have an XML data source whose raw data contains some nodes which include the namespace:
and my Record and DataStore are defined as:
// use xpath for mapping here.
var RecordDef = Ext.data.Record.create([
{name: 'title'}
]);
var store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({url:'/retrieve.php?cat=novel'}),
reader: new Ext.data.XmlReader({
record: "entry"}, RecordDef)
});
When I use firefox, the datasource is retrieved OK, but when I use IE6, it seems that the datasource records cannot be populated correctly (no records).
What is the correct syntax to include the namespace in the record definition? I've tried using
var RecordDef = Ext.data.Record.create([
{name: 'books:title'}
]);
but it doesn't work for both browsers. Any guidance appreciated.