The JavaScript API provided by JSContext is actually the core API of the language - it even lacks stuff like console.log and setTimeout, because those are provided by browsers. Because DOMParser is another API defined outside of JavaScriptCore it shouldn't be accessible in JSContext.
What you can do is expose a native XML parser like TBXML to the JSContext via the JSExport mechanism and consume that instead.