convert xml string to object.