I think it's a lot shot, but here goes:
I have a lot of XML (1000+) documents of the following format, which I retrieve from a local Disk.
The elements Comments and Attachments can have multiple child elements that I need to consider.
My goal is to route the documents and FTP them to different folders based in the number of child "Comment" elements in the XML file (number of comments on the task) and the number of "Attachment" elements.
I have searched and read Counting XML elements and Checking for an element and Route by count of element from profile and tried to get a solution based on these advices, but they do not seem to cover the above.