# Error #1088

**URL:** <https://forum.kirupa.com/t/error-1088/269271>\
**Category:** flash\
**Created:** [August 25, 2008, 2:51pm UTC](https://forum.kirupa.com/t/error-1088/269271 "2008-08-25T14:51:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Overshee](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/overshee/32/2037_2.png) [@Overshee](https://forum.kirupa.com/u/Overshee)\
**Post date:** [August 25, 2008, 2:51pm UTC](https://forum.kirupa.com/t/error-1088/269271/1 "2008-08-25T14:51:43Z")

</div>

I’m trying to load some pictures through an XML file, but I keep getting this error:

> 

TypeError: Error #1088: The markup in the document following the root element must be well-formed.  
at photo\_gallery\_fla::MainTimeline/fileLoaded()  
at flash.events::EventDispatcher/dispatchEventFunction()  
at flash.events::EventDispatcher/dispatchEvent()  
at [flash.net](http://flash.net)::URLLoader/onComplete()

Here what actually loads the XML

> 

var picURL:String = xmlList.wrap.cat.item.image.thumbnail\*;  
var picName:String = xmlList.wrap.cat.item.image.thumbnail\*;

the actual XML is set up

> \<portfolios\>  
> \<wrap\>  
> \<cat\>  
> \<item\>  
> \<image\>  
> \<thumbnail\>  
> \<detail\>  
> \</image\>  
> \</item\>  
> \<item\>  
> \<image\>  
> \<thumbnail\>  
> \<detail\>  
> \</image\>  
> \</item\>  
> \</cat\>  
> \<cat\>  
> \<item\>  
> \<image\>  
> \<thumbnail\>  
> \<detail\>  
> \</image\>  
> \</item\>  
> \</cat\>  
> \<wrap\>  
> \</portfolios\>
