private static void deleteEmptySchemas(XMPNode tree){
  for (Iterator it=tree.iterateChildren(); it.hasNext(); ) {
    XMPNode schema=(XMPNode)it.next();
    if (!schema.hasChildren()) {
      it.remove();
    }
  }
}

private static void deleteEmptySchemas ( XMPNode tree ) { for ( Iterator it = tree . iterateChildren ( ) ; it . hasNext ( ) ; ) { XMPNode schema = ( XMPNode ) it . next ( ) ; if ( ! schema . hasChildren ( ) ) { it . remove ( ) ; } } }
remove all empty schemas from the metadata tree that were generated during the rdf parsing .
