Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333419

Summary: error marker in xml more specific
Product: [WebTools] WTP Source Editing Reporter: arne anka <eclipse-bugs>
Component: wst.xmlAssignee: wst.xml-triaged <wst.xml-triaged>
Status: CLOSED WONTFIX QA Contact: Nick Sandonato <nsand.dev>
Severity: enhancement    
Priority: P3 CC: nsand.dev
Version: unspecified   
Target Milestone: Future   
Hardware: PC   
OS: Linux   
Whiteboard:

Description arne anka CLA 2011-01-03 07:47:58 EST
Build Identifier: 20100917-0705

i got a web.xml with about 1090 lines. on top, at the opening root element (web-app) there's an error marker saying

The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

nice to know, but with 1000+ lines it is rather tedious to check for the actual error.
there should be a more specific error marker, making it easy to catch the error.

Reproducible: Always
Comment 1 Nick Sandonato CLA 2011-05-25 17:11:11 EDT
These messages come from the Xerces validator. Adding a quick-fix feature might be useful here.