public DIDLContent parse(String xml) throws Exception {
  if (xml == null || xml.length() == 0) {
    throw new RuntimeException("Null or empty XML");
  }
  DIDLContent content=new DIDLContent();
  createRootHandler(content,this);
  log.fine("Parsing DIDL XML content");
  parse(new InputSource(new StringReader(xml)));
  return content;
}

public DIDLContent parse ( String xml ) throws Exception { if ( xml == null || xml . length ( ) == 0 ) { throw new RuntimeException ( "Null or empty XML" ) ; } DIDLContent content = new DIDLContent ( ) ; createRootHandler ( content , this ) ; log . fine ( "Parsing DIDL XML content" ) ; parse ( new InputSource ( new StringReader ( xml ) ) ) ; return content ; }
reads and unmarshalls an xml representation into a didl content model .
