code: private PathQueryNode createPathQueryNode(SimpleNode node) {
          root.setLocationNode(factory.createPathQueryNode(root));
          node.childrenAccept(this, root.getLocationNode());
          return root.getLocationNode();
      }
docs: Creates the primary path query node.
  
  @param node xpath node representing the root of the parsed tree.
  @return the path qurey node