Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Plugin based on WTP XML
Plugin based on WTP XML [message #168164] Mon, 01 May 2006 08:59 Go to next message
Eclipse UserFriend
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
Eclipse UserFriend
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: Sat Jun 07 08:48:27 EDT 2025

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

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

Back to the top