Code example for Vector

Methods: get

0
    public int getChildCount() { 
        return mChildren.size();
    } 
 
    public XMLNode getChild(int idx) {
        return mChildren.get(idx);
    } 
 
    public XMLNode getChild(String name) {
        for (XMLNode child : mChildren) {
            if (name.equals(child.getName())) {
                return child;
            } 
        } 
        return null; 
    } 
 
    public XMLNode getParent() { 
        return mParent;
    }