Skip to main content
13-Aquamarine
Nov 25, 2022 8:44 AM UTC
Solved

ACL recursive function to get all children of a parent tag

Hello,

With Arbortext Command Language, How to write a function to get all children of a parent tag ?

David

plutskyAnswer
15-Moonstone
Dec 1, 2022 6:34 PM UTC

If you want a recursive function to return all elements of a document, look at the code in the oid_children ACL function and modify it as needed. 

However, if you want a list of all elements in a document, you can get the list with code like this

global arr1[]

oid_find_children(oid_null(), $arr1, '.*', 0x08)

 

 

 

2 replies

plutsky15-MoonstoneAnswer
15-Moonstone
Dec 1, 2022 6:34 PM UTC

If you want a recursive function to return all elements of a document, look at the code in the oid_children ACL function and modify it as needed. 

However, if you want a list of all elements in a document, you can get the list with code like this

global arr1[]

oid_find_children(oid_null(), $arr1, '.*', 0x08)

 

 

 

Translate
dgopois13-AquamarineAuthor
13-Aquamarine
Dec 2, 2022 7:08 AM UTC

Thank you for your response

Translate