Convert XML string to object

See #7