// next, get metadata
Element sMeta = ((Element) o).getChild( "SystemMetadataList", esuNs );
Element uMeta = ((Element) o).getChild( "UserMetadataList", esuNs );
if( sMeta != null ) {
de.setSystemMetadata( new MetadataList() );
for( Iterator m = sMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
Element metaElement = (Element)m.next();
String mName = metaElement.getChildText( "Name", esuNs );
String mValue = metaElement.getChildText( "Value", esuNs );
de.getSystemMetadata().addMetadata( new Metadata( mName, mValue, false ) );
}
}
if( uMeta != null ) {
de.setUserMetadata( new MetadataList() );
for( Iterator m = uMeta.getChildren( "Metadata" , esuNs ).iterator(); m.hasNext(); ) {
Element metaElement = (Element)m.next();
String mName = metaElement.getChildText( "Name", esuNs );
String mValue = metaElement.getChildText( "Value", esuNs );