Revert "Convert XML string to object"

This reverts commit 324c0887979a150f79a6c9c73be564e68922c743.