Loading and reading XML files in cocos2d-x 3.0 javascript scripts

I’m looking for the best way to load and read XML files in cocos2d-x javascript. I asked the question [[here]http://stackoverflow.com/q/20687165/171711]. I found a way which works with [[Marknote]http://stackoverflow.com/a/20693433/171711].

But Am I missing something? Is there a built-in API to parse XML from javascript while still maintaining compatibility with cocos2d-html5?

DOMParser is ok. But jsb is not supportive.