Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » Best way to serialize a diagram
Best way to serialize a diagram [message #143924] Thu, 22 July 2004 14:37 Go to next message
Eclipse UserFriend
Originally posted by: bandrews.bphnx.com

Of course we can serialize a diagram in binary format, but is there a good
way to serialize it in a readable format, such as XML? Or is there some
standard format for drawings that is better to use, like an extension to
XML?


many thanks,

B
Re: Best way to serialize a diagram [message #143946 is a reply to message #143924] Thu, 22 July 2004 15:38 Go to previous messageGo to next message
Maged Elaasar is currently offline Maged ElaasarFriend
Messages: 529
Registered: July 2009
Senior Member
If your model is built using EMF (Eclipse Modeling Framework), you can
serialize it in XMI.
refer to http://www.eclipse.org/emf/

Maged


"Barry Andrews" <bandrews@bphnx.com> wrote in message
news:cdojej$4m2$1@eclipse.org...
> Of course we can serialize a diagram in binary format, but is there a good
> way to serialize it in a readable format, such as XML? Or is there some
> standard format for drawings that is better to use, like an extension to
> XML?
>
>
> many thanks,
>
> B
>
Re: Best way to serialize a diagram [message #143970 is a reply to message #143946] Thu, 22 July 2004 16:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bandrews.bphnx.com

Ok, but how would that be better than XML? What are the benefits, if any?




Maged Elaasar wrote:

> If your model is built using EMF (Eclipse Modeling Framework), you can
> serialize it in XMI.
> refer to http://www.eclipse.org/emf/

> Maged


> "Barry Andrews" <bandrews@bphnx.com> wrote in message
> news:cdojej$4m2$1@eclipse.org...
> > Of course we can serialize a diagram in binary format, but is there a good
> > way to serialize it in a readable format, such as XML? Or is there some
> > standard format for drawings that is better to use, like an extension to
> > XML?
> >
> >
> > many thanks,
> >
> > B
> >
Re: Best way to serialize a diagram [message #143975 is a reply to message #143970] Thu, 22 July 2004 16:53 Go to previous message
Eclipse UserFriend
Originally posted by: webmaster.mafd.org

I think that it is XML - what EMF uses when serializing models.

In terms of benefits of using XML however, there are plenty.

For example, you can post a schema to allow other programs to know how to
load your files that you generate. That is, xml provides a common (and if
you make public) platform for cross application interworking.

I'm currently working on a "drawing pad" (similar to microsoft paint) gef
application and I'm going to be saving my "drawings" as an xml file.

I also looked into SVG (http://www.w3.org/TR/SVG/) but I found it too heavy
for what I needed. The point here is that SVG is a public (proposed
standard) so different applications can load the same file because they know
how to read it.

Now that may not be an advantage to you - I don't know what your application
is - but, especially for open source projects, definately can be an
advantage.

It also makes editing them easier to - you can use any text editor to edit
them without loading eclipse and editing through your plugin - as an
example.

Spack

"Barry Andrews" <bandrews@bphnx.com> wrote in message
news:cdoqt3$k9d$1@eclipse.org...
> Ok, but how would that be better than XML? What are the benefits, if any?
>
>
>
>
> Maged Elaasar wrote:
>
> > If your model is built using EMF (Eclipse Modeling Framework), you can
> > serialize it in XMI.
> > refer to http://www.eclipse.org/emf/
>
> > Maged
>
>
> > "Barry Andrews" <bandrews@bphnx.com> wrote in message
> > news:cdojej$4m2$1@eclipse.org...
> > > Of course we can serialize a diagram in binary format, but is there a
good
> > > way to serialize it in a readable format, such as XML? Or is there
some
> > > standard format for drawings that is better to use, like an extension
to
> > > XML?
> > >
> > >
> > > many thanks,
> > >
> > > B
> > >
>
>
Previous Topic:Layout Best Practice?
Next Topic:Snap to Grid and arrow keys
Goto Forum:
  


Current Time: Thu Apr 25 18:55:56 GMT 2024

Powered by FUDForum. Page generated in 0.02937 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top