Code example for Node

Methods: getChildNodes

0
     */ 
    public static RequestDefaults getInstance(Node root){
 
        String xPathVersion = null;
 
        NodeList nodes = root.getChildNodes();
 
        for (int i = 0; i < nodes.getLength(); i++) {
            Node node = nodes.item(i);
            if ("XPathVersion".equals(DOMHelper.getLocalName(node))){
                xPathVersion = node.getFirstChild().getNodeValue();
            } 
        } 
 
        return new RequestDefaults(xPathVersion);
 
    } 
 
    /** 
     * returns XPath version 
     *