|
Re: xml value setting into the EMF model [message #1091538 is a reply to message #1090567] |
Wed, 21 August 2013 16:32 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03300 seconds