code: public static Api fromXML(final String xml) throws Exception {
    	Api result=null;
    	try {
    	  result=apifactory.fromXML(xml);
    	} catch (JAXBException je) {
    		LOGGER.log(Level.SEVERE,je.getMessage());
    		LOGGER.log(Level.INFO,xml);
    		throw je;
    	}
      return result;
    }
docs: create a Api from an XML string
  
  @param xml
  - xml representation of Page Schema
  @return the Api unmarshalled from the given xml
  @throws Exception