# Problem with XML

**URL:** <https://forum.kirupa.com/t/problem-with-xml/265889>\
**Category:** flash\
**Created:** [July 14, 2008, 11:02am UTC](https://forum.kirupa.com/t/problem-with-xml/265889 "2008-07-14T11:02:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![angelbc](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@angelbc](https://forum.kirupa.com/u/angelbc)\
**Post date:** [July 14, 2008, 11:02am UTC](https://forum.kirupa.com/t/problem-with-xml/265889/1 "2008-07-14T11:02:24Z")

</div>

Hi everyone i am bulgarian flash developer.But i have problem with loading an external xml file (from external host) i want to reach this file on my site but i have a message “file not loaded!”.Where is the problem? Here is the code:

function loadXML(loaded) {  
if (loaded) {  
xmlNode = this.firstChild.firstChild;  
d1.text = xmlNode.childNodes.length;  
} else {  
d1.text = “file not loaded!”;  
}  
}  
xmlData = new XML();  
xmlNode = new XMLNode();  
xmlData.ignoreWhite = true;  
xmlData.onLoad = loadXML;  
xmlData.load(“[http://www.sportal.bg/uploads/rss\_category\_0.xml](http://www.sportal.bg/uploads/rss_category_0.xml)”);

I have one dynamic textfield on stage - d1;  
may be i have to use allowDomain???

---

<div class="post-metadata">

**Author:** ![angelbc](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@angelbc](https://forum.kirupa.com/u/angelbc)\
**Post date:** [July 15, 2008, 5:43am UTC](https://forum.kirupa.com/t/problem-with-xml/265889/2 "2008-07-15T05:43:48Z")

</div>

hey have u any ideas about this problem ???

---

<div class="post-metadata">

**Author:** ![angelbc](https://avatars.discourse-cdn.com/v4/letter/a/3e96dc/32.png) [@angelbc](https://forum.kirupa.com/u/angelbc)\
**Post date:** [July 15, 2008, 6:22am UTC](https://forum.kirupa.com/t/problem-with-xml/265889/3 "2008-07-15T06:22:04Z")

</div>

hey guys i found my problem if u have the same here is an answer  
[http://www.flashscript.biz/MX2004/xml2004\_tutorial/xml\_tutorial\_9.html](http://www.flashscript.biz/MX2004/xml2004_tutorial/xml_tutorial_9.html)
