I’m working through the SDK tutorials to evaluate this as a way of refactoring my company’s addon.
We do a lot of client-side XML parsing, so it’s essential to be able to parse XML, evaluate XPath expressions, and save the results to a local file.
So far the SDK’s abilities in this regard seem to be severely restricted, but it’s possible I don’t have all the information, or have not yet found the most up to date information on this.
Currently I’m stymied by a problem instantiating an XPathEvalator object. I’m using code taken directly from Mozilla tutorials such as Using XPath. This code will work in Scratchpad, but when I run FDE using JPM, I get this error:
XPathEvaluator is not defined
A helpful user on StackOverflow pointed out that this is likely because this object is sandboxed out of JPM.
But if I try to instantiate using Cc, I encounter the same error described here.
A solution to this immediate problem would be welcome, but my bigger question is about the viability of using SDK and JPM to develop my addon. Am I better off not doing it this way?
I’ll add that I’m having trouble distinguishing which Mozilla articles are out of date and which ones are current, so some advice along those lines would be welcome also!