code: protected void parse(Node node) {
  		NamedNodeMap attributes = node.getAttributes();
  		type = getValueRecursive(attributes.getNamedItem("type"));
  
  		NodeList childNodes = node.getChildNodes();
  		for (int i = 0; i < childNodes.getLength(); i++) {
  			Node child = childNodes.item(i);
  			String nodeName = child.getNodeName();
  			if ("Format".equalsIgnoreCase(nodeName)) {
  				format = getValueRecursive(child);
  			} else if ("OnlineResource".equalsIgnoreCase(nodeName)) {
  				onlineResource = createOnlineResource(child);
  			}
  		}
  	}
docs: ------------------------------------------------------------------------