# Dynamic XML into component (xmlObject)

**URL:** <https://forum.kirupa.com/t/dynamic-xml-into-component-xmlobject/234520>\
**Category:** flash\
**Created:** [August 2, 2007, 10:54pm UTC](https://forum.kirupa.com/t/dynamic-xml-into-component-xmlobject/234520 "2007-08-02T22:54:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DannGillen](https://avatars.discourse-cdn.com/v4/letter/d/f08c70/32.png) [@DannGillen](https://forum.kirupa.com/u/DannGillen)\
**Post date:** [August 2, 2007, 10:54pm UTC](https://forum.kirupa.com/t/dynamic-xml-into-component-xmlobject/234520/1 "2007-08-02T22:54:07Z")

</div>

Hello!

Does anyone recognize this problem?

I am trying to pull this xml into a Flash component by way of php but it is not working.

It works when I define just an xml like this:  
\*\*[COLOR=Red]myChart.setSource(“[http://www.sitename.com/includes/xmlgen.xml](http://www.sitename.com/includes/xmlgen.xml)”);[/COLOR]

**but not as below: (it does show the grid-lines (**[COLOR=Red]grid\_lines=“5”[/COLOR]**) as defined in the xml though)**

```
[COLOR=Red]myChart.clearChart();

var resultString = "http://www.[/COLOR]****[COLOR=Red]sitename[/COLOR]****[COLOR=Red].com/includes/xmlgen.php?cid=47047"

var xmlObject:XML = new XML()

xmlObject.onLoad = function(success) {
    myChart.setSource(xmlObject)
    }

xmlObject.load(resultString)

```

[/COLOR]**[COLOR=Red][COLOR=Black]Here is the xml:[/COLOR][/COLOR]**[COLOR=Red]  
\<?xml version=“1.0” encoding=“utf-8”?\>

\<chart min=“0” padding=“5” grid\_lines=“5” type=“bar”\>

```
  &lt;bar title="Old Navy" color="0xD90000" value="300000" /&gt;

  &lt;bar title="The Gap" color="0xD90000" value="610000" /&gt;

  &lt;bar title="Hollister" color="0xD90000" value="755000" /&gt;

  &lt;bar title="Amer._Eagle" color="0xD90000" value="900002" /&gt;

  &lt;bar title="Fourteen_Chars" color="0xD90000" value="255000" /&gt;

```

\</chart\>[/COLOR]  
\*\*  
Thank you in advance!  
Dann
