Returns node with given path.

@param root
@param path
@return
340333
public static Node getNode(Object root, Path path) {
         return path.getNode(convertToJson(root, "actual"));
     }
656657
static String root(final ResourcePath path) {
        if (path.getDepth() == 1)
            return path.getResourcePath();
        throw new JaxRxException(404, "Resource not found: " + path);
    }
1246664
def get_xml_root(xml_path):
    
    r = requests.get(xml_path)
    root = ET.fromstring(r.content)
    return root
358390
def root (path, root):
    
    if os.path.isabs (path):
        return path
    else:
        return os.path.join (root, path)
97656
String getParent(String path) {
    return path.substring(0, path.lastIndexOf(Path.SEPARATOR));
  }
584211
public final String getText(String... path)
    {
        final Xml node = getNode(path);
        return node.getText();
    }
8999
public IVarDef find( String... path)
    {
    return
       path == null || path.length == 0
      ? this
      : getDescendant( path);
    }
765801
public VirtualFile getChild(String path) {
        if (path == null) {
            throw VFSMessages.MESSAGES.nullArgument("path");
        }
        final List<String> pathParts = PathTokenizer.getTokens(path);
        VirtualFile current = this;
        for (String part : pathParts) {
            if (PathTokenizer.isReverseToken(part)) {
                final VirtualFile parent = current.parent;
                current = parent == null ? current : parent;
            } else if (PathTokenizer.isCurrentToken(part) == false) {
                current = new VirtualFile(part, current);
            }
        }
        return current;
    }
1163251
public static <T> String path(TreeDef.Parented<T> treeDef, T node, Function<? super T, String> toString) {
		return path(treeDef, node, toString, "/");
	}
611424
public static String getParent(String path) throws InvalidPathException {
    String cleanedPath = cleanPath(path);
    String name = FilenameUtils.getName(cleanedPath);
    String parent = cleanedPath.substring(0, cleanedPath.length() - name.length() - 1);
    if (parent.isEmpty()) {
      // The parent is the root path.
      return AlluxioURI.SEPARATOR;
    }
    return parent;
  }
844248
@Override
    public Node get(ArchivePath path) {
        Validate.notNull(path, "No path was specified");
        Node node = content.get(path);
        if (node == null && contains(path)) {
            node = getNestedNode(path);
        }
        return node;
    }
1292014
public static ArrayList<Element> verifyPath( Element root, ArrayList<Element> path )
	{
		if( root == path.get( 0 ) )
			return path;
		return null;
	}
406935
static public String[] getMultiElementContent( XMLNode root, String path )
    {
        final List list = new ArrayList();
        visitElements( root, path, new ElementVisitor()
        {
            public void visitElement( XMLNode n )
            {
                String value = getElementContent( n, "" );
                if ( value != null )
                {
                    list.add( value );
                }
            }
        } );
        if ( list.size() == 0 )
        {
            return null;
        }
        return (String[]) list.toArray( new String[list.size()] );
    }
798133
public static String getNodeFromPath(String path)
    {
        PathUtils.validatePath(path);
        int i = path.lastIndexOf(PATH_SEPARATOR);
        if ( i < 0 )
        {
            return path;
        }
        if ( (i + 1) >= path.length() )
        {
            return "";
        }
        return path.substring(i + 1);
    }
53780
@Nullable
    List<V> find(String path) {
        final Node<V> node = findNode(path, false);
        return node == null ? ImmutableList.of() : node.values();
    }
1059449
public static <T extends HierarchyEntity<T, ?>> List<T> getPath(final T node) {
    List<T> path = CollectUtils.newArrayList();
    T curNode = node;
    while (null != curNode && !path.contains(curNode)) {
      path.add(0, curNode);
      curNode = curNode.getParent();
    }
    return path;
  }
1276051
def root(path: Union[str, pathlib.Path]) -> _Root:
    
    return _Root.from_path(_normalise_path(path))