Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » xsd2ecore
xsd2ecore [message #69291] Sat, 19 August 2006 20:39 Go to next message
Matthew Rawlings is currently offline Matthew RawlingsFriend
Messages: 39
Registered: July 2009
Member
While reverse engineering a XSD to eCore I generate a .xsd2ecore file.
Having changed the mapping in the .xsd2ecore file how I can a re-run it from
inside Eclipse?
Re: xsd2ecore [message #69312 is a reply to message #69291] Sat, 19 August 2006 22:01 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------030902010108090407020406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Matthew,

That file is produced only to reflect what the XSDEcoreBuilder does,
i.e., the relationship between the input schema and the output Ecore.
It's not used as input to drive anything else. Short of writing a
derived XSDEcoreBuilder, the best way to affect the mapping is to use
the annotations in described in:

http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf

Support for quite a few new annotations was added in 2.2 and are not yet
documented.
You'll note that the XML Schema information is recorded as EAnnotations
and this annotation syntax can be used directly on any Ecore model to
affect not only how instances of that model are serialized to XML but
also to influence how that model itself is mapped to XML Schema when
exported...


Matthew Rawlings wrote:
> While reverse engineering a XSD to eCore I generate a .xsd2ecore file.
> Having changed the mapping in the .xsd2ecore file how I can a re-run it from
> inside Eclipse?
>
>
>


--------------030902010108090407020406
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew,<br>
<br>
That file is produced only to reflect what the XSDEcoreBuilder does,
i.e., the relationship between the input schema and the output Ecore.&nbsp;
It's not used as input to drive anything else.&nbsp; Short of writing a
derived XSDEcoreBuilder, the best way to affect the mapping is to use
the annotations in described in:<br>
<blockquote><a
href=" http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf"> http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf</a><br>
</blockquote>
Support for quite a few new annotations was added in 2.2 and are not
yet documented.<br>
You'll note that the XML Schema information is recorded as EAnnotations
and this annotation syntax can be used directly on any Ecore model to
affect not only how instances of that model are serialized to XML but
also to influence how that model itself is mapped to XML Schema when
exported...<br>
<br>
<br>
Matthew Rawlings wrote:
<blockquote cite="midec7su2$jja$1@utils.eclipse.org" type="cite">
<pre wrap="">While reverse engineering a XSD to eCore I generate a .xsd2ecore file.
Having changed the mapping in the .xsd2ecore file how I can a re-run it from
inside Eclipse?


</pre>
</blockquote>
<br>
</body>
</html>

--------------030902010108090407020406--
Re: xsd2ecore [message #69329 is a reply to message #69312] Sat, 19 August 2006 22:42 Go to previous message
Matthew Rawlings is currently offline Matthew RawlingsFriend
Messages: 39
Registered: July 2009
Member
Ed - thanks. This is clear, quick, and I confirm it answers the question.
Re: xsd2ecore [message #598573 is a reply to message #69291] Sat, 19 August 2006 22:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33113
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------030902010108090407020406
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Matthew,

That file is produced only to reflect what the XSDEcoreBuilder does,
i.e., the relationship between the input schema and the output Ecore.
It's not used as input to drive anything else. Short of writing a
derived XSDEcoreBuilder, the best way to affect the mapping is to use
the annotations in described in:

http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf

Support for quite a few new annotations was added in 2.2 and are not yet
documented.
You'll note that the XML Schema information is recorded as EAnnotations
and this annotation syntax can be used directly on any Ecore model to
affect not only how instances of that model are serialized to XML but
also to influence how that model itself is mapped to XML Schema when
exported...


Matthew Rawlings wrote:
> While reverse engineering a XSD to eCore I generate a .xsd2ecore file.
> Having changed the mapping in the .xsd2ecore file how I can a re-run it from
> inside Eclipse?
>
>
>


--------------030902010108090407020406
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Matthew,<br>
<br>
That file is produced only to reflect what the XSDEcoreBuilder does,
i.e., the relationship between the input schema and the output Ecore.&nbsp;
It's not used as input to drive anything else.&nbsp; Short of writing a
derived XSDEcoreBuilder, the best way to affect the mapping is to use
the annotations in described in:<br>
<blockquote><a
href=" http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf"> http://www.eclipse.org/emf/docs/overviews/XMLSchemaToEcoreMa pping.pdf</a><br>
</blockquote>
Support for quite a few new annotations was added in 2.2 and are not
yet documented.<br>
You'll note that the XML Schema information is recorded as EAnnotations
and this annotation syntax can be used directly on any Ecore model to
affect not only how instances of that model are serialized to XML but
also to influence how that model itself is mapped to XML Schema when
exported...<br>
<br>
<br>
Matthew Rawlings wrote:
<blockquote cite="midec7su2$jja$1@utils.eclipse.org" type="cite">
<pre wrap="">While reverse engineering a XSD to eCore I generate a .xsd2ecore file.
Having changed the mapping in the .xsd2ecore file how I can a re-run it from
inside Eclipse?


</pre>
</blockquote>
<br>
</body>
</html>

--------------030902010108090407020406--


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xsd2ecore [message #598582 is a reply to message #69312] Sat, 19 August 2006 22:42 Go to previous message
Matthew Rawlings is currently offline Matthew RawlingsFriend
Messages: 39
Registered: July 2009
Member
Ed - thanks. This is clear, quick, and I confirm it answers the question.
Previous Topic:xsd2ecore
Next Topic:suggestion to use namespace prefix for nsPrefix in XSD2eCore mapping
Goto Forum:
  


Current Time: Thu Mar 28 18:07:45 GMT 2024

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

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

Back to the top