Code example for NamedNodeMap

Methods: getNamedItem

0
	public void readXml(Node node) {
		this.configNode = node;
 
		NamedNodeMap attributes = node.getAttributes();
		String htmlCtrlValue = XmlUtil.getNodeContent(attributes
				.getNamedItem("HtmlCtrl"), "Text");
		this.htmlCtrl = (HtmlCtrlType) Enum.valueOf(HtmlCtrlType.class,
				htmlCtrlValue);
		this.order = XmlUtil.getNodeIntValue(attributes.getNamedItem("Order"),
				0); 
	} 
 
	public static HtmlCtrlConfigItem parse(Node node) {
		if (node == null)
			return null; 
		HtmlCtrlConfigItem result = new HtmlCtrlConfigItem();
		result.readXml(node);
		return result;
	} 
}