Handle XML parsing on the client side, since it's much easier in JavaScript.
Fix element numbering when UIs go away.