I have some XML I am using to populate a Tree control. This
tree is being used as part of a form to assign topics to a specific
item. When I go to edit the item, I need to pre-select the
appropriate item from the tree. I have been trying to use e4x
syntax to search for the necessary items, but unless the topic is
one of the top level topics, I am unable to get anything returned
from the e4x.
The trouble is not on the recursion, the interpreter does
recurse. The trouble is when there a multiple children for the same
Try the same example but with some <topics> parent
having ONLY ONE <topic> child and this child having the @id
you like. Then the query find it withou problem (and all the
<topic> childrens without siblings fullfiling the query
That the problem, BUT I have no solution to this, and I would
appreciate any idea to solve, or any alternative for performing
such a usual query.