View Full Version : XMLReader error in Internet Explorer

21 May 2009, 7:14 AM
Hello. I have a trouble with using XMLReader in InternetExplorer.
When i'm using read() or readRecords() methods, i have an error here:

function(path,root,defaultValue){path=path.replace(trimRe,"");That variable "path" is undefined.
But when i use Firefox, Opera, Safari or Chrome it's ok.
PS This is XML reader.

var RecordDef = Ext.data.Record.create([
{name: 'body'},
{name: 'type'},
{name: 'author'},
{name: 'authorid'},
{name: 'keywords'},
{name: 'keywordsid'},
var myReader = new Ext.data.XmlReader({
totalRecords: "results",
record: "row",
id: "id"
}, RecordDef);
And this is my XML file:


Help me please. Thanks! :)

21 May 2009, 7:29 AM
TRailing comma!

21 May 2009, 7:42 AM
Oops, sorry for my silly question.
Thanks you very much, Animal!