[UPDATE] code review

Remove unused variables, unused methods. Add executeDomXPathQuery
method.