Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » xml binding for structured document
xml binding for structured document [message #205167] Fri, 30 November 2007 07:16 Go to next message
Eclipse User
Originally posted by: jaehemail-eclipse.yahoo.co.uk

Hi,

I am part of a team developing a plugin for eclipse. We need the user to
be able to edit xml documents while they are using the plugin and I would
obviously like to use the structured text editor for this. We also want to
provide alternative ways to edit this information, a multipage editor with
a structured text editor tab is a very good fit for this.

However, we do not want to navigate the DOM structure from this other page
or in the rest of the plugin. The natural approach for this is to use some
xml-binding tool to generate the java model from the schemas, then to bind
the xml documents to the structure using the DOM provided by the
structured text editor model. I cannot believe that we are the first group
to require a facility like this so my question is: what are the approaches
other groups have tried?
Re: xml binding for structured document [message #205175 is a reply to message #205167] Fri, 30 November 2007 08:07 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020603030303000206050508
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Jae,

You could use EMF or some other technology:

Binding XML to Java
< http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava>
Tutorial: Generating an EMF Model using XML Schema
< http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html>

Some folks recently asked about integration between EMF and the SSE
DOM. There are EMF to DOM adapters, but they require a lot of hand
coding as I understand it. You might want to search the newsgroup for
that thread:
< http://www.eclipse.org/search/search.cgi?cmd=Search%21&f orm=extended&wf=574a74&ps=10&m=all&t=5&u l=%2Fnewslists%2Fnews.eclipse.webtools&wm=wrd&t=News &t=Mail>


http://www.eclipse.org/search/search.cgi?cmd=Search%21&f orm=extended&wf=574a74&ps=10&m=all&t=5&u l=%2Fnewslists%2Fnews.eclipse.webtools&wm=wrd&t=News &t=Mail
< http://www.eclipse.org/search/search.cgi?cmd=Search%21&f orm=extended&wf=574a74&ps=10&m=all&t=5&u l=%2Fnewslists%2Fnews.eclipse.webtools&wm=wrd&t=News &t=Mail>

This bugzilla is slightly related: 205892
<https://bugs.eclipse.org/bugs/show_bug.cgi?id=205892>


Jae Hossell wrote:
> Hi,
>
> I am part of a team developing a plugin for eclipse. We need the user
> to be able to edit xml documents while they are using the plugin and I
> would obviously like to use the structured text editor for this. We
> also want to provide alternative ways to edit this information, a
> multipage editor with a structured text editor tab is a very good fit
> for this.
> However, we do not want to navigate the DOM structure from this other
> page or in the rest of the plugin. The natural approach for this is to
> use some xml-binding tool to generate the java model from the schemas,
> then to bind the xml documents to the structure using the DOM provided
> by the structured text editor model. I cannot believe that we are the
> first group to require a facility like this so my question is: what
> are the approaches other groups have tried?
>
>
>


--------------020603030303000206050508
Content-Type: text/html; charset=ISO-8859-15
Content-Transfer-Encoding: 8bit

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Jae,<br>
<br>
You could use EMF or some other technology:<br>
<blockquote><a target="_out"
href=" http://www.theserverside.com/tt/articles/article.tss?l=Bindi ngXMLJava">Binding
XML to Java</a><br>
<a
href=" http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. emf.doc/tutorials/xlibmod/xlibmod.html">Tutorial:
Generating an EMF Model using XML Schema</a><br>
</blockquote>
Some folks recently asked about integration between EMF and the SSE
DOM.
Previous Topic:handling of internal errors in WTP
Next Topic:JSP Editor
Goto Forum:
  


Current Time: Sun Aug 31 06:24:02 EDT 2014

Powered by FUDForum. Page generated in 0.03632 seconds