# Loading xml files

**URL:** <https://forum.kirupa.com/t/loading-xml-files/303022>\
**Category:** Uncategorized\
**Created:** [January 12, 2010, 5:06pm UTC](https://forum.kirupa.com/t/loading-xml-files/303022 "2010-01-12T17:06:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![geestring](https://avatars.discourse-cdn.com/v4/letter/g/e19b73/32.png) [@geestring](https://forum.kirupa.com/u/geestring)\
**Post date:** [January 12, 2010, 5:06pm UTC](https://forum.kirupa.com/t/loading-xml-files/303022/1 "2010-01-12T17:06:32Z")

</div>

so loading a xml file

var xmlLoader:URLLoader = new URLLoader();  
var xmlData:XML = new XML();

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest(“companies.xml”));

can i just add a url to the file? because it doesnt work.
