Speed optimizations in the XML parser
Uses a referens counted string class instead of copying the entire XML document.