static void rdf_RDF(XMPMetaImpl xmp,Node rdfRdfNode) throws XMPException {
  if (rdfRdfNode.hasAttributes()) {
    rdf_NodeElementList(xmp,xmp.getRoot(),rdfRdfNode);
  }
 else {
    throw new XMPException("Invalid attributes of rdf:RDF element",BADRDF);
  }
}

static void rdf_RDF ( XMPMetaImpl xmp , Node rdfRdfNode ) throws XMPException { if ( rdfRdfNode . hasAttributes ( ) ) { rdf_NodeElementList ( xmp , xmp . getRoot ( ) , rdfRdfNode ) ; } else { throw new XMPException ( "Invalid attributes of rdf:RDF element" , BADRDF ) ; } }
each of these parsing methods is responsible for recognizing an rdf syntax production and adding the appropriate structure to the xmp tree . they simply return for success , failures will throw an exception .
