Does anyone know if there is a preferred way to read XML data into Cocos2D-HTML5

Looking at what the internals of the framework does to read the plist and TMX files, I’ve written this code, but it seems strange that there is not a generic way to at least load a xml file into the framework.

Does anyone know if there is some sort of XML loader / parser built into the framework (that I’ve not spotted ).