I am having an issue where in my xml data, I have child elements off the root that have the same element name as what is also found in the root.
What then happens, is when I use the data in a jqxGrid I find the values of the other child elements of the same name off the root appended.
For example my datafields looks like this (truncated):
datafields : [ {name : 'insertDate', type: 'date'}, ... and so on
root: "Items",
record: "Item"
...
And my xml data looks like this (also truncated):
<Items>
<Item>
<insertDate>12/12/2013</insertDate>
<SubItem>
<name>Some Name</name>
<insertDate>01/01/2014</insertDate>
</SubItem>... and so on with the SubItems
</Item>
</Items>
In my column definition I have the following:
{ text : 'Insert Date',
datafield : 'insertDate',
..
}
And in the display I get both all the insertDates appended together, instead of just the single item from the root that I wanted.
Is there any way to map only to root, and not to include the children of the root?
Thanks,