For instance, I have an xml like the one below:
How do you check if the funds element have a child element?
Thanks for your help.
Solved! Go to Solution.
Assuming this is used as a data file and assuming you have resolved to the Funds node you should be able to just call Funds.nodes.length.
var Funds = xfa.datasets.data.resolveNode ("pathToFundsNode");
if ( Funds.nodes.length > 0)
// Funds has children nodes;
Hope this helps