Create a list of all self referenced child objects without parent objects.

0
Hi,   I have a unique business requirement which is, when using two layers of Self Referenced objects, to create a list of all child objects with ommitting Parent objects. What is the simplest way to do this?
asked
1 answers
1

I'm not sure if I understand correctly, but you mean something like combining the xpath not() function and reversed?

[not(Module.Object_SelfReference[reversed()]/Module.Object)]

Now performance may take a hit using a query like this, so maybe it's better to retrieve all, then retrieve parents and subtract. Retrieve parents using:

[Module.Object_SelfReference[reversed()]/Module.Object]

 

answered