Best way to serialize a diagram [message #143924] |
Thu, 22 July 2004 10:37  |
Eclipse User |
|
|
|
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 #143975 is a reply to message #143970] |
Thu, 22 July 2004 12:53  |
Eclipse User |
|
|
|
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
> > >
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02771 seconds