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.

Was this page helpful? Yes No Submitting... Thank you