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

**URL:** <https://forum.kirupa.com/t/what-is-the-best-way-to-check-xml-nodes-children-for-most-number-of-characters/328156>\
**Category:** flash\
**Created:** [April 23, 2012, 1:31pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-check-xml-nodes-children-for-most-number-of-characters/328156 "2012-04-23T13:31:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m2244](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@m2244](https://forum.kirupa.com/u/m2244)\
**Post date:** [April 23, 2012, 1:31pm UTC](https://forum.kirupa.com/t/what-is-the-best-way-to-check-xml-nodes-children-for-most-number-of-characters/328156/1 "2012-04-23T13:31:45Z")

</div>

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.

```auto

<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>

```
