July 15, 2008

Eclipse XML Validation can BITE ME

Geekitude , Programming-fu

There are times when I want to take an axe to Eclipse. Today's particular grief is due to the XML editor. There are numerous faults with it (one of the biggest is that it 'captures' the control-pgup and control-pgdn keys into local tabs, so if you have an XML file open, and you use the keystrokes to navigate through your files, when you switch tabs to an XML file, the only way you can view a different file is to click on it), but todays stabbity-stab comes from the validator.

eclipse-48Eclipse shows you errors and warnings in realtime. Usually, they're fairly accurate. Today I was editing a struts.xml file, and was getting a validation warning. When Eclipse senses a problem with the XML (based on it's DTD), it tells you "this XML file fails the DTD validation".

But it doesn't tell you where.

This completely baffles me. "Somewhere in the following several hundred lines of XML code, there's a problem. But I won't tell you where or what it is."

Off to the W3.org Validation service. I fed the XML file into it, and lo! A detailed description of the problem, and where it was:

Line 26, Column 39:
document type does not allow element "include" here.
<include file="struts-editevent.xml"/>

Was that really that difficult?

Gnar.


Posted by dbs at July 15, 2008 9:45 PM

Trackback Pings

TrackBack URL for this entry:
http://mt.homeport.org/cgi-bin/mt-tb.cgi/4064

Comments

If you ping me tomorrow, I can find out what XML editor we use w/ Eclipse. :)

Posted by: Lisa at July 15, 2008 10:11 PM

It's not free, and I totally get why you wouldn't want to have to jump out of Eclipse into another program just to edit an XML file, but...

oXygen rocks so hard it's in danger of breaking the spacetime continuum.

Just sayin.

Posted by: Doctor Memory at July 18, 2008 11:49 PM

If you can reliably reproduce this, I would suggest opening a bug report with eclipse. You also don't mention what version of eclispe your are running. There are a LOT of errors in eclipse wtp 2.0, eclipse wtp 3.0 is much better, but still not perfect. Feel free to drop me a note, I'm a committer on the eclipse XSL Tools project so glad to help work through any issues.

Posted by: David Carver at July 31, 2008 9:56 PM

Post a comment


Note that comments here are moderated, and may not appear immediately.




Remember Me?

(you may use HTML tags for style)

Subscribe without leaving a comment

Email Address:


Linux // Mac Webgame Reviews
Ikariam - Civilization goes Web!
It's GROW time again!
Darwinia Mini-Review
Rampant Eye Candy
Teeny wonderful games

View all games...
Reviews (Most recent 5)
Battle for Wesnoth : A free turn based strategy game
Photo Managers - Digikam rocks
Journeying Abroad - Life without Mozilla
Calendar sharing. Nirvana found?
Another Linux user. Our ranks grow.

View all reviews...
Recent Geekitude
A Quest - Network enabled cheap MP3 player
Picker / Selector for GSM phones?
Eclipse XML Validation can BITE ME
Jumping the RSS train Again
Weird Ways of Working

View all geekery...