The following example displays the gpUrlLoader Class with an option to load an XML file. Add the event listener, then call the init method with the url and the load type.
var ldr:gpUrlLoader = new gpUrlLoader();
ldr.addEventListener(Event.COMPLETE, xmlLoaded);
ldr.init('my_xml.xml', 'xml');
function xmlLoaded(event:Event):void {
var xl:XML = ldr.getXML();
}
For documentation about the gpUrlLoader AS3 Class, view the blog post.