The codebase keeps files in XML format and javascript receives them via ajax and currently manually parses them into element nodes by doing the “div.innerHTML” trick, but this fails in fringe cases.
Is there a javascript library with a lot of XML capabilities already built in?
jquery has really great xml support.
http://www.switchonthecode.com/tutorials/xml-parsing-with-jquery
Update:
The above link doesn’t work anymore. See this answer.