Refactor XML parsing to use xpath again.

Doo dee doo...
Check status code of the HTTP response when making updates.