# XML to AS3 PLease help clients banging down my door! please

**URL:** <https://forum.kirupa.com/t/xml-to-as3-please-help-clients-banging-down-my-door-please/317816>\
**Category:** Uncategorized\
**Created:** [January 4, 2011, 12:29am UTC](https://forum.kirupa.com/t/xml-to-as3-please-help-clients-banging-down-my-door-please/317816 "2011-01-04T00:29:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcollins](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@rcollins](https://forum.kirupa.com/u/rcollins)\
**Post date:** [January 4, 2011, 12:29am UTC](https://forum.kirupa.com/t/xml-to-as3-please-help-clients-banging-down-my-door-please/317816/1 "2011-01-04T00:29:59Z")

</div>

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

xmlLoader.addEventListener(Event.COMPLETE, LoadXML);

xmlLoader.load(new URLRequest(“xmlout/FatOutput.xml”));

function LoadXML(e:Event):void {  
xmlData = new XML(e.target.data);  
trace(xmlData);  
}

**XML ![](http://forum.kirupa.com/uploads/kirupa/1799/6a24f1d926eff459.gif)provided by the client and i dont think we can change it, it is generated by a database i think?)**  
\<Fatigue.dbo.Drivers\>  
\<DriverID\>1\</DriverID\>  
\<DFName\>Test\</DFName\>  
\<DLName\>Driver\</DLName\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>1\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-09-06T00:00:00\</StartDate\>  
\<StartTime\>2010-09-06T16:00:00\</StartTime\>  
\<Sleep24\>8\</Sleep24\>\<Sleep48\>16\</Sleep48\>  
\<AwakeTime\>12\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\</Fatigue.dbo.Drivers\>  
\<Fatigue.dbo.Drivers\>  
\<DriverID\>2\</DriverID\>  
\<DFName\>Test\</DFName\>  
\<DLName\>Driver2\</DLName\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>2\</FatID\>  
\<DriverID\>2\</DriverID\>  
\<StartDate\>2010-09-06T00:00:00\</StartDate\>  
\<StartTime\>2010-09-06T08:00:00\</StartTime\>  
\<Sleep24\>6\</Sleep24\>  
\<Sleep48\>14\</Sleep48\>  
\<AwakeTime\>3\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\</Fatigue.dbo.Drivers\>  
\<Fatigue.dbo.Drivers\>  
\<DriverID\>1\</DriverID\>  
\<DFName\>Test\</DFName\>  
\<DLName\>Driver\</DLName\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>4\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-10-17T00:00:00\</StartDate\>  
\<StartTime\>2010-10-17T22:20:00\</StartTime\>  
\<Sleep24\>8\</Sleep24\>  
\<Sleep48\>16\</Sleep48\>  
\<AwakeTime\>4\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>5\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-10-17T00:00:00\</StartDate\>  
\<StartTime\>2010-10-17T22:22:00\</StartTime\>  
\<Sleep24\>8\</Sleep24\>  
\<Sleep48\>16\</Sleep48\>  
\<AwakeTime\>4\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>6\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-10-17T00:00:00\</StartDate\>  
\<StartTime\>2010-10-17T22:22:00\</StartTime\>  
\<Sleep24\>8\</Sleep24\>  
\<Sleep48\>16\</Sleep48\>  
\<AwakeTime\>4\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>7\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-10-19T00:00:00\</StartDate\>  
\<StartTime\>2010-10-19T21:15:00\</StartTime\>  
\<Sleep24\>4\</Sleep24\>  
\<Sleep48\>8\</Sleep48\>  
\<AwakeTime\>1\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\<Fatigue.dbo.FatData\>  
\<FatID\>8\</FatID\>  
\<DriverID\>1\</DriverID\>  
\<StartDate\>2010-12-30T00:00:00\</StartDate\>  
\<StartTime\>2010-12-30T10:23:00\</StartTime\>  
\<Sleep24\>20\</Sleep24\>  
\<Sleep48\>20\</Sleep48\>  
\<AwakeTime\>15\</AwakeTime\>  
\<Complete\>0\</Complete\>  
\</Fatigue.dbo.FatData\>  
\</Fatigue.dbo.Drivers\>

**ERROR:** (and no i havent embeded any fonts wtf!!)

Fonts should be embedded for any text that may be edited at runtime, other than text with the “Use Device Fonts” setting. Use the Text \> Font Embedding command to embed fonts.  
TypeError: Error #1090: XML parser failure: element is malformed.

at test3\_fla::MainTimeline/LoadXML()  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at [flash.net](http://flash.net)::URLLoader/onComplete()

[SIZE=4]thanks in advance for any help you can provide[/SIZE]
