PDA

View Full Version : XML parsing: Selecting Unknown Nodes



ronivcp
21 Mar 2013, 7:34 AM
Hi, I'm trying to get the node-name from a very simple XML, like this:


<colors>
<green/>
<blue/>
</colors>


creating a xmlReader like this:

new Ext.data.XmlReader({
record: '/'
fields: ?
})

I already tried using /, //, /*, . ,*, etc.
The * doesn't work, but according to x-path it would be the way of getting this data.
How can I get the unknown tagname with xmlReader?

Thanks in advance.