Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Eclipse flags ALL XML tags as invalid.
Eclipse flags ALL XML tags as invalid. [message #550443] Fri, 30 July 2010 11:55 Go to next message
Paul  is currently offline Paul Friend
Messages: 3
Registered: July 2010
Junior Member
Hi guys,

I have had this problem for a long while, but have a few minutes to actually try and fix it and I can't.

If I create the following file called test.jsp

<hello>
<world>Blah</world>
</hello>

Then Eclipse highlights "<hello>" and "<world>" with a warning, "Unknown Tag"

It also highlights </world> and </hello> red with the descriptive "Error" and no other information.

I have played about with JSP validation settings and XML validation settings, but nothing seems to say, "Eclipse, leave it alone, it's custom XML or an XML format you don't know about, just let me know about obvious XML structure errors, ignore the tags!"

This is Eclipse 3.4.2 but I have had the problem since Eclipse 3.2 or 3.3

The errors exist no matter what type of XML I am using.

I generally just ignore eclipse, but I'd still like to fix it someday Smile

Paul

[Updated on: Fri, 30 July 2010 11:56]

Report message to a moderator

Re: Eclipse flags ALL XML tags as invalid. [message #550455 is a reply to message #550443] Fri, 30 July 2010 12:27 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

What editor are you using? ALT+SHIFT+F1 can tell you if it's not
obvious (and you're using a recent enough version of eclipse).

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Eclipse flags ALL XML tags as invalid. [message #550463 is a reply to message #550455] Fri, 30 July 2010 13:10 Go to previous messageGo to next message
Paul  is currently offline Paul Friend
Messages: 3
Registered: July 2010
Junior Member
Hi,

JSP Editor apparently.

The active editor class:
StructuredTextEditor
The contributing plug-in:
org.eclipse.jst.jsp.ui (1.1.312.v200901290909)
The active editor identifier:
org.eclipse.jst.jsp.core.jspsource.source
The active menu contribution identifiers:
org.eclipse.jst.jsp.core.jspsource.source.EditorContext
org.eclipse.jst.jsp.core.jspsource.source.RulerContext
#OverviewRulerContext
org.eclipse.wst.sse.ui.StructuredTextEditor.EditorContext
org.eclipse.jst.jsp.core.jspsource.source.source.EditorConte xt
org.eclipse.wst.sse.ui.StructuredTextEditor.RulerContext
org.eclipse.jst.jsp.core.jspsource.source.source.RulerContex t

Thanks
Paul
Re: Eclipse flags ALL XML tags as invalid. [message #550468 is a reply to message #550463] Fri, 30 July 2010 13:20 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If it's supposed to be able to handle arbitrary XML instead of just
HTML, you should 1) ask in eclipse.webtools or 2) open a bug against
Webtools/JSP source editing.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: Eclipse flags ALL XML tags as invalid. [message #550484 is a reply to message #550468] Fri, 30 July 2010 14:06 Go to previous message
Paul  is currently offline Paul Friend
Messages: 3
Registered: July 2010
Junior Member
Okay, thanks Smile
Previous Topic:Hiding project name in CommonNavigator
Next Topic:FormText lacks a getter for the text
Goto Forum:
  


Current Time: Thu Apr 25 03:45:32 GMT 2024

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

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

Back to the top