XML driver

This is a driver for xml mapping, if it's going to be merged I will add tests and doc.
This function isn't used anymore after the refactoring