Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Can I use EMF to build tooling for an XML based standard?(ECore and XSD bidirectional transformations)
Can I use EMF to build tooling for an XML based standard? [message #756748] Mon, 14 November 2011 22:10 Go to next message
Seref Arikan is currently offline Seref ArikanFriend
Messages: 73
Registered: August 2010
Member
Greetings,
At the moment, I am using a set of XSD schemas which are used by the industry in various platforms.

I want to build my tooling using EMF, and I can generate ECore from the published schemas. However, I need to be able to produce various XML schemas which use types from the original schema. Also, there are XML files produced by other tools/software, which I need to process in my EMF based tools, so I need to be able to complete the following flows:

XSD_Schema1 -> Ecore -> Tooling -> XSD_Schema1 -> XML

XML -> ECore (based on XSD_Schema1) -> XML

XSD_Schema1 -> Ecore -> Tooling -> XSD_Schema2(with references to types in Schema1) -> XML


Basically, I need to build an EMF tooling layer that will import and export XSD and XSD compatible XML through various work flows.

All my searches on Google bring discussions where people end up with XMI annotated XSDs etc. Is what I've described possible in EMF? Or once Ecore is created, must all tooling and its inputs and outputs reside in the EMF space?

Best Regards
Seref

Re: Can I use EMF to build tooling for an XML based standard? [message #756753 is a reply to message #756748] Mon, 14 November 2011 22:46 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Seref,<br>
<br>
Yes, EMF can read and write XML serializations that conform to your
schema.<br>
<br>
Try this tutorial:<br>
<blockquote><a
href="http://help.eclipse.org/ganymede/index.jsp?topic=/org.eclipse.emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
</blockquote>
And read this article:<br>
<blockquote><a target="_out"
href="http://www.theserverside.com/tt/articles/article.tss?l=BindingXMLJava">Binding
XML to Java</a><br>
</blockquote>
<br>
On 14/11/2011 11:10 PM, Seref Arikan wrote:
<blockquote cite="mid:j9s2s2$ih9$1@news.eclipse.org" type="cite">Greetings,
At the moment, I am using a set of XSD schemas which are used by
the industry in various platforms. <br>
I want to build my tooling using EMF, and I can generate ECore
from the published schemas. However, I need to be able to produce
various XML schemas which use types from the original schema.
Also, there are XML files produced by other tools/software, which
I need to process in my EMF based tools, so I need to be able to
complete the following flows:
<br>
<br>
XSD_Schema1 -&gt; Ecore -&gt; Tooling -&gt; XSD_Schema1 -&gt; XML
<br>
<br>
XML -&gt; ECore (based on XSD_Schema1) -&gt; XML
<br>
<br>
XSD_Schema1 -&gt; Ecore -&gt; Tooling -&gt; XSD_Schema2(with
references to types in Schema1) -&gt; XML
<br>
<br>
<br>
Basically, I need to build an EMF tooling layer that will import
and export XSD and XSD compatible XML through various work flows.
<br>
All my searches on Google bring discussions where people end up
with XMI annotated XSDs etc. Is what I've described possible in
EMF? Or once Ecore is created, must all tooling and its inputs and
outputs reside in the EMF space?
<br>
<br>
Best Regards
<br>
Seref
<br>
<br>
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Can I use EMF to build tooling for an XML based standard? [message #756836 is a reply to message #756753] Tue, 15 November 2011 10:06 Go to previous message
Seref Arikan is currently offline Seref ArikanFriend
Messages: 73
Registered: August 2010
Member
Thanks Ed,
I'll be reading these!

Cheers
Seref
Previous Topic:CDO timeout exception in 4.0 maintenance release.
Next Topic:TableViewer data binding with EMF model - Problems syncing number columns
Goto Forum:
  


Current Time: Thu Apr 25 17:23:57 GMT 2024

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

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

Back to the top