I do that to import data from vast.com using
http://www.magicparser.com/ - saves loads of coding time and works very very well. You can test it here:
http://www.magicparser.com/demoI also use
xml-sitemaps to create the xml files in the first place (not necessary if you already have them created/sent to you)
hth,
Charles