> > How can I get the XMI representation of a project, for example as a
> > String or a Byte-Array?
> 
> You can get the XMI as a string using getQuickViewDump() in 
> PersistenceManager.

Until very recently that method returned the full XML file that is stored in
the .uml format, of which the XMI file is just one nested piece.  I believe
it should still be doing that rather than it's current behavior, so to
insulate yourself from any changes in this regard, you probably want to
explicitly work with the XMI persister.  

Something along the lines of the following should get you close:

    AbstractFilePersister persister = 
        PersistenceManager.getInstance().getPersisterFromFileName("foo.xmi")
    OutputStream stream = new ByteArrayOutputStream();
    persister.writeProject(project, stream, null);

Tom

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to