Java XML Node Path getVectorPathFromNode(Node node)

Here you can find the source of getVectorPathFromNode(Node node)

Description

get Vector Path From Node

License

Open Source License

Declaration

private static Vector getVectorPathFromNode(Node node) 

Method Source Code

//package com.java2s;
import java.util.Vector;
import org.w3c.dom.*;

public class Main {
    private static Vector getVectorPathFromNode(Node node) {
        Vector path = new Vector();

        while (node != null) {
            path.insertElementAt(node, 0);
            node = node.getParentNode();
        }/* w ww  .  j a v a 2 s  .  c o  m*/

        return path;
    }
}

Related

  1. getPath(Node n)
  2. getPath(Node node)
  3. getValueViaPath(Node node, String path)
  4. getValueViaPath(Node node, String path)
  5. getVectorPathFromNode(Node node)
  6. getVectorPathFromNode(Node node)
  7. pathTo(Node xmlNode)
  8. pathUp(Node node, int level)
  9. pathUp(Node node, int level)