Code example for Node

Methods: getNodeName, getNodeValue

0
		mNews.update(nUri, cv, null, null);
 
	} 
 
	public static void printlnCommon(Node n) {
		System.out.print(" nodeName=\"" + n.getNodeName() + "\"");
		String val = n.getNodeValue();
		if (val != null) {
			System.out.print(" nodeValue =");
			if (val.trim().equals("")) {
				System.out.print("[WS]");
			} else { 
				System.out.print("\"" + n.getNodeValue() + "\"");
			} 
		} 
		System.out.println();
	} 
 
	public static void echo(Node n) {
 
		int type = n.getNodeType();