Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » How to generate compound document model using emf?
How to generate compound document model using emf? [message #417650] Thu, 20 March 2008 09:14 Go to next message
sibin is currently offline sibinFriend
Messages: 15
Registered: July 2009
Junior Member
Hi,

I need to create a XML editor for editing a compound XML document.
That means my xml document can contain XML elements from 2 or more
namespaces.

I have the following scenario ,

I have 2 namespaces for my target XML document, A and B.

I have XML schema files for both namespace A and B.

Is it possible to build a emf model for my compound XML file from 2 schema
files?

or Can I create EMF models for both schemas seperately and use it together
while creating the Resource from a URI.


Sorry if the answer is very obvious , I am new to EMF.

Thanks for any help

Sibin
Re: How to generate compound document model using emf? [message #417651 is a reply to message #417650] Thu, 20 March 2008 09:36 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33218
Registered: July 2009
Senior Member
Sibin,

Comments below.


sibin wrote:
> Hi,
>
> I need to create a XML editor for editing a compound XML
> document. That means my xml document can contain XML elements from 2
> or more namespaces.
>
> I have the following scenario ,
>
> I have 2 namespaces for my target XML document, A and B.
>
> I have XML schema files for both namespace A and B.
>
> Is it possible to build a emf model for my compound XML file from 2
> schema files?
Yes.
> or Can I create EMF models for both schemas seperately and use it
> together while creating the Resource from a URI.
It depends on the relation between the schemas. If one depends on the
other, the "base" one has to be done first and the second one should
reference the base one (or they could to be in the same GenModel).
>
>
> Sorry if the answer is very obvious , I am new to EMF.
Try it.
>
> Thanks for any help
>
> Sibin
>
>
>
>
>
>


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Errors in compiling generated code
Next Topic:creating XML instances with multiple schemas
Goto Forum:
  


Current Time: Wed Sep 25 06:47:14 GMT 2024

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

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

Back to the top