PDA

View Full Version : DomQuery.select question



Lasagne
15 May 2008, 5:48 AM
Hi,

Quick question on DomQuery.select

what does this return exactly?

I'm running a select on an xml file, I select all the children of an element


recordDefinition = Ext.DomQuery.select(this.meta.recordDefinition + ' / *', data);

but I get an array with 13 elements (in the xml file, there's 6 children for the element...)
I tried to use some reflection to find out what the other objects were, and they seem to be objects containing extra information (some of the properties where previous child etc)

Is it normal to get these objects? I just need the 6 elements that are defined in the xml.
any way around this?
(the xml file is valid btw)


Cheers

Lasagne
15 May 2008, 11:32 PM
bump