Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Working with XML files with EMF?
Working with XML files with EMF? [message #427088] Sat, 31 January 2009 18:48 Go to next message
Csaba Missing name is currently offline Csaba Missing nameFriend
Messages: 16
Registered: July 2009
Junior Member
Hello Guys,

In my Eclipse-base application I would like to process XML files which are
according to a specific XML Schema file.

The schema is quite simple and the instance documents contain short
configuration data.

Am I right that I can generate model classes for the XML Schema and
loading, processing and saving XML data from/with/to these classes with
EMF?

Maybe this is not so lightweight solution for XML binding. Is there any
other simple Eclipse-specific way for XML binding and processing?
Or shall I use the Java-based solutions like JAXB?

Thanks, guys!
Regards,
Csaba
Re: Working with XML files with EMF? [message #427092 is a reply to message #427088] Sat, 31 January 2009 20:51 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------000202060409070408060406
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Csaba,

Comments below.

Csaba wrote:
> Hello Guys,
>
> In my Eclipse-base application I would like to process XML files which
> are according to a specific XML Schema file.
>
> The schema is quite simple and the instance documents contain short
> configuration data.
>
> Am I right that I can generate model classes for the XML Schema and
> loading, processing and saving XML data from/with/to these classes
> with EMF?
Yes.
>
> Maybe this is not so lightweight solution for XML binding.
Not sure what's being weighed...
> Is there any other simple Eclipse-specific way for XML binding and
> processing?
Not that I know of.
> Or shall I use the Java-based solutions like JAXB?
I don't think JAXB is so great but then again, it's not really all that
different:

http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava

>
> Thanks, guys!
> Regards,
> Csaba
>

--------------000202060409070408060406
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Csaba,<br>
<br>
Comments below.<br>
<br>
Csaba wrote:
<blockquote
cite="mid:64dc4f1c29e2a79c8cad20515d3f3750$1@www.eclipse.org"
type="cite">Hello Guys,
<br>
<br>
In my Eclipse-base application I would like to process XML files which
are according to a specific XML Schema file.
<br>
<br>
The schema is quite simple and the instance documents contain short
configuration data.
<br>
<br>
Am I right that I can generate model classes for the XML Schema and
loading, processing and saving XML data from/with/to these classes with
EMF?
<br>
</blockquote>
Yes.<br>
<blockquote
cite="mid:64dc4f1c29e2a79c8cad20515d3f3750$1@www.eclipse.org"
type="cite"><br>
Maybe this is not so lightweight solution for XML binding. </blockquote>
Not sure what's being weighed...<br>
<blockquote
cite="mid:64dc4f1c29e2a79c8cad20515d3f3750$1@www.eclipse.org"
type="cite">Is there any other simple Eclipse-specific way for XML
binding and processing?
<br>
</blockquote>
Not that I know of.<br>
<blockquote
cite="mid:64dc4f1c29e2a79c8cad20515d3f3750$1@www.eclipse.org"
type="cite">Or shall I use the Java-based solutions like JAXB?
<br>
</blockquote>
I don't think JAXB is so great but then again, it's not really all that
different:


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Generated factory class
Next Topic:how to model an iterator?
Goto Forum:
  


Current Time: Fri Apr 26 09:43:57 GMT 2024

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

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

Back to the top