Handle XML parsing on the client side, since it's much easier in JavaScript.