PDA

View Full Version : Single line with XMLReader



keztrel
27 Nov 2007, 6:06 AM
Hi,

I have to read a XML response which looks like the following:



<?xml version="1.0" encoding="UTF-8"?>
<ticket>TICKET_c7452b524105ae983ea3da9dbef3fab437707999</ticket>


My code so far:


var store = new Ext.data.Store({
proxy: new Ext.data.HttpProxy({
url: 'http://...'
}),

reader: new Ext.data.XmlReader({
record: 'ticket',
}, ['ticket'])
});


As you can see I cannot specify a record and as I also cannot specify fields I even won't get a result if I specify id whit 'ticket'. Any ideas how to solve this issue?