What are the pros and cons of having such a library. I'd like to make one if it does not exist already. But I am not sure where to make a start.
Originally posted by Stoyan Stefanov: Before you dive into this, is it an option to consider moving towards JSON as a data transfer format. It's leaner to transfer (less bytes) and definitely easier on the client side.
Quoted for emphasis.
I can't remember the last time I returned XML from an Ajax request.