# Xml detection, help needed

**URL:** <https://forum.kirupa.com/t/xml-detection-help-needed/192961>\
**Category:** Uncategorized\
**Created:** [July 3, 2006, 6:32am UTC](https://forum.kirupa.com/t/xml-detection-help-needed/192961 "2006-07-03T06:32:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sonicpro](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@Sonicpro](https://forum.kirupa.com/u/Sonicpro)\
**Post date:** [July 3, 2006, 6:32am UTC](https://forum.kirupa.com/t/xml-detection-help-needed/192961/1 "2006-07-03T06:32:02Z")

</div>

If i have an xml file set out as such:

```auto
<?xml version="1.0"?>
<inventors>
 <person>
  <name>Thomas Edison</name>
  <comment>Inventor of many things such as the incandescent lightbulb.</comment>
 </person>
 <person>
  <name>Doug Engelbart</name>
  <comment>Invented the mouse at the Stanford Research Institute</comment>
 </person>
</inventors>

```

Is there any way I could pass data to a flash variable on how many \<person\> I have in the xml file?

Thanks
