code: public String generateAndSerialise(JAXBSerialiser serialiser) throws IOException
  	{
  		final MultiXSDSchemaFiles schemas = generate(serialiser);
  
  		if (schemas.files.size() == 1)
  		{
  			// Single schema, can be serialised as a simple XSD
  			return DOMUtils.serialise(schemas.files.get(0).schemaElement());
  		}
  		else
  		{
  			// Complex schema, needs to be represented with multi-xsd schema
  			return JAXBSerialiser.getInstance(MultiXSDSchemaFiles.class).serialise(schemas);
  		}
  	}
docs: Generate a schema and then serialise it to a String. Emits a simple XSD if there was only one XSD required, otherwise emits
  a serialised {@link MultiXSDSchemaFiles} instance.
  
  @param serialiser
  
  @return
  
  @throws IOException