Code example for Node

Methods: getLocalNamegetNodeTypegetParentNode

0
		return Tag.UNKNOWN;
	} 
 
	public static Tag getTag(Node node) {
		if (node != null) {
			if (node.getNodeType() == Node.TEXT_NODE) {
				return getTag(node.getParentNode());
			} else if (node.getNodeType() == Node.ELEMENT_NODE
					|| node.getNodeType() == Node.COMMENT_NODE) {
				return getTag(node.getLocalName());
			} 
		} 
		return Tag.UNKNOWN;
	} 
 
	public static boolean isTag(Node node, Tag tag) {
		return (getTag(node) == tag);
	} 
 
	public static List<Node> getChildElementsByTagName(Element element,
			String name) {