xml data support

very simple xml support to be used instead of :json option

did not make a test for it.

first time i create a pull request so please tell me if i do something stupid :)