Added support for query-xml to return the first node it finds that matches the path.