XML Video

Hi,

We declare a container and pass images to it from xml in a flash image gallery.
For ex:

function xmlLoaded(event:Event):void
{
xml = XML(event.target.data);
xmlList = xml.children();
for(var i:int = 0; i < xmlList.length(); i++)
{
imageLoader = new Loader();
imageLoader.load(new URLRequest(xmlList*.attribute(“whatever attribute”)));
container.addChild(imageLoader);

}

}

Can I do the same with video? As in a video xml gallery. If not then what can do for a video xml gallery?