ElementGetChildrenValue searches the subtree of an element and internally saves the children that match the specified value. It then returns the number of saved children, i.e. the number of children matching the specified value.
The ElementGetChildFieldItem method is just a helper method to retrieve the elements internally saved by the ElementGetChildrenValue method. The index passed as an argument may range from zero to the number returned by the ElementGetChildrenValue method minus 1.
So, the documentation is correct and the example should work as well (I just checked that)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum