Skip to main content
Question

How to get all children / grandchildren / etc from parent on all tree nodes ?

  • February 8, 2022
  • 2 replies
  • 97 views

I have an XML with a tree structure, which we can aggregate to 1 feature with traits. It has several levels in the tree (6 at the moment)

 

At each node, I would like to have the ID's of all underlying children of that node (so not only the direct children, but alto their children, etc etc).

 

I tried TraitsToAttibute transformer, which does this but only on the root level. The Deaggegator can list the children ID's belonging to parent, but only for the direct children.

 

 

 

2 replies

muzhnasto
Contributor
Forum|alt.badge.img+12
  • Contributor
  • 105 replies
  • February 9, 2022

mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • February 11, 2022

Can you use the XQuery transformers on the original XML?