Added support for XML APIs

Hey guys,

I loved implementing this gem with JSON but I started building an XML API and noticed it wasn't compatible, so I've added support for XML and some tests.

Hope you like it,

Aaron.