This will depend on the format of your XML file. If you are using a standard XML shema such as GeoRSS or GPX then you can use a premade module available here:
http://bingmapsv7modules.codeplex.com/ If you are using a custom XML shema then take a look at the code for the GeoRSS module and use that to as a guide to build your own.
http://rbrundritt.wordpress.com