UDF for count no of elements under parent element.
I want to caliculate no of elements present under the parent element using UDF.
So it has 4 elements undre Main tag Emoloyee.
How to caliculate the no of elements under parent element using UDF.
I want to use this for error handling. Whenever the message in coming in I want to caliculate the no of fields if i get the no of fields is lessthank 4 i want to throw an error.
And could any one please provide the JAVA API for mapping
Thanks & Regards