# \[MX04PRO\] XMLConnector component access

**URL:** https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/116217
**Category:** Uncategorized
**Created:** [July 15, 2004, 4:52pm UTC](https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/116217 "2004-07-15T16:52:36Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![kbuff](https://avatars.discourse-cdn.com/v4/letter/k/9fc29f/32.png) [@kbuff](https://forum.kirupa.com/u/kbuff)
#### Post date: [July 15, 2004, 4:52pm UTC](https://forum.kirupa.com/t/mx04pro-xmlconnector-component-access/116217/1 "2004-07-15T16:52:36Z")

</div>

I have an XMLConnector component instance that is communicating fine with the external XML file from which it is reading the data. The XML file is structured like so:

```auto

<data>
 <category id="0">
  <name>Category 0's name</name>
  <value>12345</value>
 </category>
 <category id="1">
  <!-- and it's name and value -->
 </category>
 <!-- and so on... -->
 
</data>

```

So the XMLConnector (named “xcData” let’s say) has a schema that looks like:

```auto

-> params:XML
<-> results:XML
 - <-> data:Object
 - <-> category:Array
 - <-> [n]:Object
 - - <-> name:String
 - - <-> value:Number

```

Now that you’ve got a general idea of what I’m working with, I’ll move onto what I want to _do_ with it. Let’s say when the 1st frame (which has the XMLConnector on it) loads, we want to calculate the sum of all the **value** s from the XML categories. It seems like an easy concept, but I can’t figure out how to traverse through the array of objects without user intervention.

I appreciate any help offered.
