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?

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?

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.
>
>