xpath.openDocument
xpath.openDocument(string)
Returns the DOM object resulting from parsing the XML string.
The DOM object returned is suitable for passing to xpath-evaluate.
Parsing the XML once is considerably more efficient if you wish to call xpath-evaluate on the same XML.
You should use xpath-closeDocument once xpath evaluation is complete or the parsed DOM will be held in memory for some time.
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*