Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » accessing xml dom from generated model
accessing xml dom from generated model [message #215856] Fri, 20 June 2008 18:44 Go to next message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
I am working on form-based editor build on top of EMF2DOMSSE bridge
from WST XML editing framework and wonder if someone could help me with
some issues?

We have Java model generated with EMF from the model imported from an
xml schema file: foo.xsd -> foo.getnmodel -> Java. We been able to
populate generated Java classes from and xml file corresponding to
original schema, and managed to read and change xml content using java
model.

Now we need to figure out how to retrieve location in xml document
handled by the EMF2DOMSSE bridge from given Java object instance (one
that comes from the generated model). I wonder if anyone had similar
scenario or can give me some hints how this can be implemented?

Thank you in advance.

Eugene
Re: accessing xml dom from generated model [message #215886 is a reply to message #215856] Sun, 22 June 2008 16:25 Go to previous message
Eugene Kuleshov is currently offline Eugene KuleshovFriend
Messages: 505
Registered: July 2009
Senior Member
It turns out that with little bit of casting to the right types I can
pull location information out of the notification listeners registered
on my Java model. It work nicely, but I wonder if there is a better way
of doing this.

regards,
Eugene


Eugene Kuleshov wrote:
>
> I am working on form-based editor build on top of EMF2DOMSSE bridge
> from WST XML editing framework and wonder if someone could help me
> with some issues?
>
> We have Java model generated with EMF from the model imported from an
> xml schema file: foo.xsd -> foo.getnmodel -> Java. We been able to
> populate generated Java classes from and xml file corresponding to
> original schema, and managed to read and change xml content using java
> model.
>
> Now we need to figure out how to retrieve location in xml document
> handled by the EMF2DOMSSE bridge from given Java object instance (one
> that comes from the generated model). I wonder if anyone had similar
> scenario or can give me some hints how this can be implemented?
>
> Thank you in advance.
>
> Eugene
>
Previous Topic:Problem with publishing several WSDL files
Next Topic:Tomcat JNDI in WTP
Goto Forum:
  


Current Time: Thu Nov 27 23:27:36 GMT 2014

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

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