Can I use EMF to build tooling for an XML based standard? [message #756748] |
Mon, 14 November 2011 22:10 |
Seref Arikan 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 |
Ed Merks 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 -> Ecore -> Tooling -> XSD_Schema1 -> XML
<br>
<br>
XML -> ECore (based on XSD_Schema1) -> XML
<br>
<br>
XSD_Schema1 -> Ecore -> Tooling -> XSD_Schema2(with
references to types in Schema1) -> 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/
|
|
|
|
Powered by
FUDForum. Page generated in 0.03408 seconds