Exporting images from flash to XML

Hey guys,

This is about XML + Flash, maybe a little more XML than Flash, but I hope I posted it here correctly.
I’ll explain the problem:

I have a webcam. The webcam is connected to Flash, and allows me te make snapshots.

The problem: I want to export these snapshots to XML. So Basically, I want the photos to be placed in a map, where XML can automatically index them.

I already have the actionscript to make the snapshots, and save them, but this doesn’t go automatically yet.

How do I make the connection Flash -> XML ?

Thanks!