Question

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

  • 8 February 2022
  • 2 replies
  • 4 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

Badge +5

Hi, maybe this article will help https://community.safe.com/s/article/xml-reader-configuration

Userlevel 4
Badge +25

Can you use the XQuery transformers on the original XML?

Reply