Project

General

Profile

« Previous | Next » 

Revision 8c1b9940

Added by Andreas Müller almost 16 years ago

View differences:

cdmlib-commons/src/main/java/eu/etaxonomy/cdm/common/XmlHelp.java
93 93
			}
94 94
		}
95 95
		return resultList;
96
	}	
96
	}
97
	
98
	public static String getChildAttributeValue(Element element, String childElementName, Namespace childElementNamespace, String childAttributeName, Namespace childAttributeNamespace){
99
		Element child = element.getChild(childElementName, childElementNamespace);
100
		if (child == null){
101
			return null;
102
		}
103
		Attribute childAttribute = child.getAttribute(childAttributeName, childAttributeNamespace);
104
		if (childAttribute == null){
105
			return null;
106
		}
107
		return childAttribute.getValue();
108
	}
97 109

  
98 110
	/**
99 111
	 * @param parent

Also available in: Unified diff