IndentingXMLStreamWriter serializer = new IndentingXMLStreamWriter( factory.createXMLStreamWriter( writer ) );
if ( supportWindowsLineEndings )
{
serializer.setNewLine( serializer.getLineSeparator() );
}
serializer.writeStartDocument( model.getModelEncoding(), "1.0" );
writeModel( model, "project", serializer );
serializer.writeEndDocument();
} //-- void write(Writer, Model)
/**