Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Ecore Custom XML Serialization with ExtendedMetaData
Ecore Custom XML Serialization with ExtendedMetaData [message #758856] Thu, 24 November 2011 18:26 Go to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

I have an Ecore meta-model from which I generate an editor of models (by means of the related genmodel) that i would like to be conform to an already existing xml-schema. I am having some difficulties in trying to serialize such tag:

<tag type="test"> contents... </tag>

I do not know how to use extended meta data annotations in the Ecore to get such behaviour.

Thank you in advance


Follow me on Twitter @andreasindico

Re: Ecore Custom XML Serialization with ExtendedMetaData [message #758882 is a reply to message #758856] Thu, 24 November 2011 23:16 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
Andrea,

Generate the model from the schema and look at those annotations.


On 24/11/2011 7:26 PM, Andrea wrote:
> I have an Ecore meta-model from which I generate an editor of models
> (by means of the related genmodel) that i would like to be conform to
> an already existing xml-schema. I am having some difficulties in
> trying to serialize such tag:
>
> <tag type="test"> contents... </tag>
>
> I do not know how to use extended meta data annotations in the Ecore
> to get such behaviour.
>
> Thank you in advance


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: Ecore Custom XML Serialization with ExtendedMetaData [message #758908 is a reply to message #758882] Fri, 25 November 2011 08:24 Go to previous messageGo to next message
Andrea Sindico is currently offline Andrea SindicoFriend
Messages: 266
Registered: November 2010
Senior Member

How?

Follow me on Twitter @andreasindico

Re: Ecore Custom XML Serialization with ExtendedMetaData [message #758910 is a reply to message #758908] Fri, 25 November 2011 08:33 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33137
Registered: July 2009
Senior Member
<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<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>
<br>
On 25/11/2011 9:24 AM, Andrea wrote:
<blockquote cite="mid:janjbg$hlk$1@news.eclipse.org" type="cite">How?
<br>
</blockquote>
</body>
</html>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Does it make sense to run headless Eclipse as EMF services back end?
Next Topic:[CDO] Exception on Repository activation
Goto Forum:
  


Current Time: Fri Apr 19 23:53:42 GMT 2024

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

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

Back to the top