Notice how we have title tags nested within subitem and one under each item. However, the title tag that is a direct child of item is listed below the nested sub items.
When I read this structure with associations and want to get the <title> of <item> the data being returned to the field in the model is the first title in the list of subitems rather than the title tag in item.
When I use the code below to read the data for the first <item> and subseuqently its <title> I am getting a value of "A Subtitle" which is the title of the first subitem rather then the expected "A Title" which is the title of the first item.
I wanted to mention that I could solve this by placing the <title> tag for item above the <subitems> tag, however, this XML structure in my case is predefined and not something I can edit prior to loading.
The only workaround I can think of at the moment is to create a proxy to read all of the <title> elements and then test if the parent_id is the correct one before using it. For deeply nested xml this adds quite a bit of unneeded parsing and I haven't implemented it yet, but it's an idea.
Any idea if this has been (or will be) fixed in Sencha v2.0?