Code example for NamedNodeMap

Methods: item

	public TreeComponent createClassFromNode(Node node) {
		String name = node.getNodeName();
		if (!(name.equals("direction")))
			return null; 
		NamedNodeMap map = node.getAttributes();
		Attr at = (Attr) map.item(0);
		Button button = new Button(this); // create button
		button.setOnClickListener(this); //setListener
		ButtonWrapperModel bwm = new ButtonWrapperModel();
		bwm.setButton(button); // set button
		return bwm;
Connect your IDE to all the code out there  Get Codota for Java