Skip to main content



      Home
Home » Modeling » EMF » XSD to dynamic meta model?
XSD to dynamic meta model? [message #1479925] Wed, 19 November 2014 16:19 Go to next message
Eclipse UserFriend
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 16:20 Go to previous messageGo to next message
Eclipse UserFriend
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 01:41 Go to previous message
Eclipse UserFriend
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: Sun Jul 27 16:26:16 EDT 2025

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

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

Back to the top