Code example for Node

Methods: getChildNodes

0
		Node n;
 
		@Override 
		public Iterator<Node> iterator() {
			NodeListIterator it = new NodeListIterator();
			it.list = n.getChildNodes();
			it.i = 0;
			it.ie = it.list.getLength();
			return it;
		} 
	} 
 
 
	public static NodeListIterable childnodes( Node n ){
		NodeListIterable v = new NodeListIterable();
		v.n = n;
		return v;
	} 
 
	static Pattern reControlChar = Pattern.compile("[\\x00-\\x1f\\x7f]");
	static Pattern reEscape      = Pattern.compile("\\\\(\\\\|n)");