Expose the xmldom document to the caller. To query using xpath, call the document's xpath() function. Eliminated the @id and text() selector sugar.