Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » common XML framework
common XML framework [message #128339] Thu, 07 August 2008 14:52 Go to next message
Eclipse UserFriend
Originally posted by: j12222r.fastmail.net

I would like to ask if there is a common model for dealing with XML within
Eclipse. Would that be Ecore, or the WST DOM model, or is every bundle
using its own implementation?

So far it seems that the Structured Source editors all depend on EMF
packages. Are they internally using Ecore models?

The only DOM model that I could spot was the
org.eclipse.wst.xml.core.internal.documentDOMModelImpl. But this doesn't
seem to use Ecore.

The Ant editor seems to be based directly on the generic Eclipse text
editor, and the plugin.xml reuses the Ant editor. Does that mean they
don't have anything to do with XML editing?

Regards,
John
Re: common XML framework [message #128365 is a reply to message #128339] Thu, 07 August 2008 15:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040400020608030706090000
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

John,

Comments below.

John wrote:
> I would like to ask if there is a common model for dealing with XML
> within Eclipse. Would that be Ecore, or the WST DOM model, or is every
> bundle using its own implementation?
EMF provides something more similar to JAXB, i.e., a mechanism for
binding XML onto high-level Java APIs.

Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>

WTP's DOM implementation is a specialized DOM that supports keeping a
source view of the DOM in sync with the DOM itself. It also has
sophisticated notification mechanisms for keeping something else in sync
with the DOM. They also have EMF2DOM adapters for keeping an EMF model
in sync with the underlying DOM.
>
> So far it seems that the Structured Source editors all depend on EMF
> packages. Are they internally using Ecore models?
Much of WTP depends on EMF models. SSE's EMF2DOM adapters likely are
the reason for the dependency on EMF.
>
> The only DOM model that I could spot was the
> org.eclipse.wst.xml.core.internal.documentDOMModelImpl. But this
> doesn't seem to use Ecore.
Yes, DOM is just DOM.
>
> The Ant editor seems to be based directly on the generic Eclipse text
> editor, and the plugin.xml reuses the Ant editor. Does that mean they
> don't have anything to do with XML editing?
You might want to look at this tutorial to see if what this produces
meets your specific needs:

Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html>

>
> Regards,
> John
>

--------------040400020608030706090000
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">
John,<br>
<br>
Comments below.<br>
<br>
John wrote:
<blockquote
cite="mid:f1f11b03ba995eb5cb98456128121f16$1@www.eclipse.org"
type="cite">I would like to ask if there is a common model for dealing
with XML within Eclipse. Would that be Ecore, or the WST DOM model, or
is every bundle using its own implementation?
<br>
</blockquote>
EMF provides something more similar to JAXB, i.e., a mechanism for
binding XML onto high-level Java APIs.<br>
<blockquote><a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
</blockquote>
WTP's DOM implementation is a specialized DOM that supports keeping a
source view of the DOM in sync with the DOM itself.


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: common XML framework [message #620210 is a reply to message #128339] Thu, 07 August 2008 15:11 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------040400020608030706090000
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

John,

Comments below.

John wrote:
> I would like to ask if there is a common model for dealing with XML
> within Eclipse. Would that be Ecore, or the WST DOM model, or is every
> bundle using its own implementation?
EMF provides something more similar to JAXB, i.e., a mechanism for
binding XML onto high-level Java APIs.

Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>

WTP's DOM implementation is a specialized DOM that supports keeping a
source view of the DOM in sync with the DOM itself. It also has
sophisticated notification mechanisms for keeping something else in sync
with the DOM. They also have EMF2DOM adapters for keeping an EMF model
in sync with the underlying DOM.
>
> So far it seems that the Structured Source editors all depend on EMF
> packages. Are they internally using Ecore models?
Much of WTP depends on EMF models. SSE's EMF2DOM adapters likely are
the reason for the dependency on EMF.
>
> The only DOM model that I could spot was the
> org.eclipse.wst.xml.core.internal.documentDOMModelImpl. But this
> doesn't seem to use Ecore.
Yes, DOM is just DOM.
>
> The Ant editor seems to be based directly on the generic Eclipse text
> editor, and the plugin.xml reuses the Ant editor. Does that mean they
> don't have anything to do with XML editing?
You might want to look at this tutorial to see if what this produces
meets your specific needs:

Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclips e.emf.doc/tutorials/xlibmod/xlibmod.html>

>
> Regards,
> John
>

--------------040400020608030706090000
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">
John,<br>
<br>
Comments below.<br>
<br>
John wrote:
<blockquote
cite="mid:f1f11b03ba995eb5cb98456128121f16$1@www.eclipse.org"
type="cite">I would like to ask if there is a common model for dealing
with XML within Eclipse. Would that be Ecore, or the WST DOM model, or
is every bundle using its own implementation?
<br>
</blockquote>
EMF provides something more similar to JAXB, i.e., a mechanism for
binding XML onto high-level Java APIs.<br>
<blockquote><a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
</blockquote>
WTP's DOM implementation is a specialized DOM that supports keeping a
source view of the DOM in sync with the DOM itself.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:common XML framework
Next Topic:JPOXMappingException: URI <X> does not translate to an eclass
Goto Forum:
  


Current Time: Wed Apr 24 16:40:40 GMT 2024

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

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

Back to the top