Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » XSD to dynamic meta model?
XSD to dynamic meta model? [message #1479925] Wed, 19 November 2014 21:19 Go to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
Hi all,
Is it possible to transform an XSD to a dynamic meta model in memory at run-time without code generation, then (at run-time) instantiate models from it using an XML instance?
Anyone did that before and can tell about performance or any other issues/drawbacks?

Thanks.
Re: XSD to dynamic meta model? [message #1479930 is a reply to message #1479925] Wed, 19 November 2014 21:20 Go to previous messageGo to next message
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 853
Registered: July 2009
Senior Member
With "using an XML instance" I mean that I have an XML instance/file conforming to the XSD that I want to de-serialize using the dynamic meta model.

Erdal Karaca wrote on Wed, 19 November 2014 22:19
Hi all,
Is it possible to transform an XSD to a dynamic meta model in memory at run-time without code generation, then (at run-time) instantiate models from it using an XML instance?
Anyone did that before and can tell about performance or any other issues/drawbacks?

Thanks.

Re: XSD to dynamic meta model? [message #1480408 is a reply to message #1479930] Thu, 20 November 2014 06:41 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 30452
Registered: July 2009
Senior Member
org.eclipse.emf.ecore.xmi.impl.GenericXMLResourceImpl.GenericXMLResourceImpl(URI)
does that kind of thing. Probably
org.eclipse.emf.ecore.xmi.impl.GenericXMLResourceFactoryImpl.createResource(URI)
should be creating that type of resource, but if I changed it I'd likely
break existing users.

On 19/11/2014 10:20 PM, Erdal Karaca wrote:
> With "using an XML instance" I mean that I have an XML instance/file
> conforming to the XSD that I want to de-serialize using the dynamic
> meta model.
>
> Erdal Karaca wrote on Wed, 19 November 2014 22:19
>> Hi all,
>> Is it possible to transform an XSD to a dynamic meta model in memory
>> at run-time without code generation, then (at run-time) instantiate
>> models from it using an XML instance?
>> Anyone did that before and can tell about performance or any other
>> issues/drawbacks?
>>
>> Thanks.
>
>
Previous Topic:EPackage with no ResourceSet?
Next Topic:(Re)using model elements in other models
Goto Forum:
  


Current Time: Thu Sep 19 23:51:16 GMT 2019

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

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

Back to the top