Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Plugin based on WTP XML
Plugin based on WTP XML [message #168164] Mon, 01 May 2006 08:59 Go to next message
Thomas Einwaller is currently offline Thomas Einwaller
Messages: 8
Registered: July 2009
Junior Member
Hi,

I want to write a Eclipse plugin that validates a specific XML file. The
identified problems in the XML file should be displayed using markers.

I have not got a clue about how to get the start and end point for a
Marker when I find a problem in the parsed XML. How could I make the
connection between the nodes in the parsed DOM tree and the location in
the XML file?

I want to use the XML editor of WTP as a base for my plugin ... but I
could not identify where to start.

I would be thankful for any help!

cheers

tOM
Re: Plugin based on WTP XML [message #168458 is a reply to message #168164] Wed, 03 May 2006 23:30 Go to previous message
Craig Salter is currently offline Craig Salter
Messages: 169
Registered: July 2009
Senior Member
Thomas Einwaller wrote:

> Hi,

> I want to write a Eclipse plugin that validates a specific XML file. The
> identified problems in the XML file should be displayed using markers.

> I have not got a clue about how to get the start and end point for a
> Marker when I find a problem in the parsed XML. How could I make the
> connection between the nodes in the parsed DOM tree and the location in
> the XML file?

> I want to use the XML editor of WTP as a base for my plugin ... but I
> could not identify where to start.

> I would be thankful for any help!

> cheers

> tOM


You probably want to start by looking at the xml validator that lives in
the xml.core plugin under the 'validation' src folder. If you want an
example of how you can recover locations from DOM nodes look at the wsdl
validator.

If you want your validator to have 'very' accurate error locations
(accurate enough for red squiggles) then there's an extra step you'll need
to do. We do this extra step in the XML editor to 'fix up' the error
locations to make them suitable for squiggling.

Hope that helps.
Previous Topic:Weblogic portal and WTP
Next Topic:Web project can't see .jar in dependent project
Goto Forum:
  


Current Time: Wed Jul 30 07:23:37 EDT 2014

Powered by FUDForum. Page generated in 0.02765 seconds