Where is your XML submitted? SharePoint Library? With SharePoint 2010, you can add a data connection to the library your form submits to and select to get back information about just the current item. That should get you the Title field, which should be your file name..... you'd need to use a concat formula to include the extension if you need that as well.