| 
| xsd2ecore [message #69291] | Sat, 19 August 2006 16:39  |  | 
| Eclipse User  |  |  |  |  | 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 #598573 is a reply to message #69291] | Sat, 19 August 2006 18:01  |  | 
| Eclipse User  |  |  |  |  | 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. 
 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:<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--
 |  |  |  | 
|  | 
Powered by 
FUDForum. Page generated in 0.04490 seconds