Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Plugin based on WTP XML
Plugin based on WTP XML [message #168164] Mon, 01 May 2006 12:59 Go to next message
Thomas Einwaller is currently offline Thomas EinwallerFriend
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] Thu, 04 May 2006 03:30 Go to previous message
Craig Salter is currently offline Craig SalterFriend
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: Tue Apr 23 09:46:19 GMT 2024

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

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

Back to the top