On 06/08/2012 11:10 AM, yu wang wrote:
> Hi all,
> I am new to the EMF and I am trying to generate code like this:
> but it is always like this:
> <eclass:myeclass id="myvalue" /> :(
> I changed the feature kind to element but it seems does not work.
You need to use XMLResource.EXTENDED_META_DATA options for the extended
metadata annotations to take effect. Have a look at the generated
resource factory for a model based on XML Schema.
> and I found it's different between create ecore from schema(xsd) file
> and create ecore from ecore diagram.
> create ecore from xsd file can choose EType like String Boolean...but
> if I create ecore from ecore diagram I can only choose EString
> EBoolen, Why? :roll:
You can load the Ecore model for the XMLType package if you want access
to the built-in data type for XML Schema.
> I hope someone out there can help.
> Best regards ,