Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » xml value setting into the EMF model(xml value setting into the EMF model)
xml value setting into the EMF model [message #1090567] Tue, 20 August 2013 10:24 Go to next message
Kunal Ghosh is currently offline Kunal GhoshFriend
Messages: 5
Registered: August 2013
Junior Member
I have created one gen model for XML schema. I have run that as eclipse plugins & I am getting the model in Example EMF model Creation Wizard. If I paste the corresponding xml to the editor, I am successfully getting the value into the model resource set.

Now I wanted to know how it is setting the value into that model??????can anyone help me on this?????I want to create the same project so that I can utilize that code into my project.
Re: xml value setting into the EMF model [message #1091538 is a reply to message #1090567] Wed, 21 August 2013 16:32 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33141
Registered: July 2009
Senior Member
Kunal,

Comments below.

On 21/08/2013 5:41 PM, Kunal Ghosh wrote:
> I have created one gen model for XML schema. I have run that as
> eclipse plugins & I am getting the model in Example EMF model Creation
> Wizard. If I paste the corresponding xml to the editor, I am
> successfully getting the value into the model resource set.
>
> Now I wanted to know how it is setting the value into that model??????
One question mark is enough to make it clear it's a question. I don't
really understand the question though. You load the resource into the
resource set and then work with the Resource.getContents(). It will be
an instance of your DocumentRoot and from there you can use the
generated API. Perhaps reading this article will help:
http://www.theserverside.com/news/1364302/Binding-XML-to-Java
> can anyone help me on this?????I want to create the same project so
> that I can utilize that code into my project.
The generated model code can be used in any other project...


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:EOpposite on derived EReferences
Next Topic:Performance issue with URI.createGenericURI (v2.9)
Goto Forum:
  


Current Time: Thu Apr 25 22:06:23 GMT 2024

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

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

Back to the top