Code example for Node

Methods: getAttributes

0
		if (baseObj == null || !(baseObj instanceof ClassObject))
			obj = new ClassObject();
		else 
			obj = (ClassObject)baseObj;
		 
		SmartObject.toObject(node, obj);
		 
		NamedNodeMap attrMap = node.getAttributes();
		if (attrMap != null) {
			Node objId = attrMap.getNamedItem(A_OBJID);
			if (objId != null)
				obj.setObjId(objId.getNodeValue());
		} 
		 
		return obj;
	} 
	public static BaseObject toObject(String str) throws Exception {
		if (str == null)
			return null; 
		Document doc = XmlUtil.toDocument(str);
Stop searching for code, let great code find you!  Add Codota to your java IDE