What is the best way to check XML node's children for most number of characters?

Hello,

I would like to do a simple check when I load an XML file for the most number of characters of children nodes. In other words, if any child node contains more than 50 characters I want to to configure stage objects differently.


<parent>
     <child>One sentence.</child>
     <child>two sentence.</child>
     <child>This child node contains over 50 characters so I want to arrange objects on stage differently. Is there an easy way to do this?</child>
     <child>four sentence.</child>
</parent>