Did you look @ this?
After that:
You need to get the file into a FileDocument. XmlToDomain mappings can only map data from webservice (SOAP) calls and data contained in FileDocuments.