Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » Java Development Tools (JDT) » Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do?(Now XML Editor show error: The prefix "?" for element "?:??" is not bound. How disable this error?)
Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834483] Wed, 11 November 2020 09:25 Go to next message
master master is currently offline master masterFriend
Messages: 5
Registered: November 2020
Junior Member
Hellow!
index.php/fa/39251/0/
I installed new version Eclipse 2020-09 for Java and now the Xml Editor, when opening my old xml files, gives errors in the <name: subname> constructions, indicating that there is no schema for 'subname' (see attached picture). But I don't need such circuits. these files are generated by someone else's program and it is impossible to describe all variants of 'name: subname' and their possible parameters. This error makes it very difficult to view such files and find other real errors in them.
Previous versions of Eclipse 2020-03 and earlier did not have this bug, it only appeared in the latest version.
Moreover, this error is not detected during 'Validate', it is shown only if you open this file in an XML editor.
Can you please tell me how to remove this error in the Eclipse XML editor? I have looked through every possible XML setting but nothing seems to help!
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834496 is a reply to message #1834483] Wed, 11 November 2020 13:15 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4035
Registered: July 2009
Senior Member

Does the message both 1) not appear in the Markers/Errors views and 2) appear when you open the file in the Generic Editor?

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834498 is a reply to message #1834496] Wed, 11 November 2020 13:41 Go to previous messageGo to next message
master master is currently offline master masterFriend
Messages: 5
Registered: November 2020
Junior Member
Nitin Dahyabhai wrote on Wed, 11 November 2020 13:15
Does the message both 1) not appear in the Markers/Errors views and 2) appear when you open the file in the Generic Editor?


1) If file not opened "view Problems" does not show this error, but where file open - this error show from "view Problems"
2) "Generic text Editor" show this error also as "XML Editor"
image from Generic Editor:
index.php/fa/39255/0/

[Updated on: Wed, 11 November 2020 13:46]

Report message to a moderator

Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834499 is a reply to message #1834498] Wed, 11 November 2020 13:46 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4035
Registered: July 2009
Senior Member

You'll want to report this to https://github.com/eclipse/wildwebdeveloper/issues so they can untangle how to either turn it off or fix this bug (as in, you should only see well-formedness-related messages when your document lacks XML Schema and DTD references).

Nitin Dahyabhai
Eclipse Web Tools Platform
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834503 is a reply to message #1834499] Wed, 11 November 2020 14:26 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7099
Registered: July 2009
Senior Member
Hi

IMHO The images look like bad XML that should be reported by any version of the tool in the last ten years. You must specify your xmlns. If you can confirm a lack of error on some recent tool, please raise a bug.

Regards

Ed Willink
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834505 is a reply to message #1834503] Wed, 11 November 2020 14:59 Go to previous messageGo to next message
master master is currently offline master masterFriend
Messages: 5
Registered: November 2020
Junior Member
Ed Willink wrote on Wed, 11 November 2020 14:26
Hi
IMHO The images look like bad XML that should be reported by any version of the tool in the last ten years. You must specify your xmlns. If you can confirm a lack of error on some recent tool, please raise a bug.


see screen shot previous version eclipse 2020-03
index.php/fa/39259/0/

(you should only see well-formedness-related messages when your document lacks XML Schema and DTD references)
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834529 is a reply to message #1834505] Wed, 11 November 2020 20:00 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7099
Registered: July 2009
Senior Member
Hi

If I'm using an XML editor, I expect to be told about rubbish XML by default. Perhaps an editing option facilitates various dimensions of rubbish.

If I want to edit rubbish XML, I use NotePad / a Text editor.

Regards

Ed Willink
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834541 is a reply to message #1834529] Thu, 12 November 2020 07:14 Go to previous messageGo to next message
master master is currently offline master masterFriend
Messages: 5
Registered: November 2020
Junior Member
Ed Willink wrote on Wed, 11 November 2020 20:00
Hi
If I'm using an XML editor, I expect to be told about rubbish XML by default. Perhaps an editing option facilitates various dimensions of rubbish.
If I want to edit rubbish XML, I use NotePad / a Text editor.
Ed Willink


Hellow!
Notepad does not highlight XML syntax or show XML structure errors, so I consider your advice to be useless!
Arbitrary fields with correct syntax in XML are not a bug, this is normal and was fine until the last Eclipse update. As I wrote above, even "Validate" does not see an error here, this "error" is shown only by the XML editor. If "Validate" showed an error, then it would be another matter, but this is a bug.
I ask you to tell me how I can remove this error, maybe I can change something in the configuration of the Eclipse itself or the Xml editor?
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834542 is a reply to message #1834541] Thu, 12 November 2020 07:40 Go to previous messageGo to next message
Eitan Rosenberg is currently offline Eitan RosenbergFriend
Messages: 86
Registered: October 2018
Member
Hi there,

I have Version: 2020-09 (4.17.0).

There are some settings that might do the job (I did not test it.)

index.php/fa/39264/0/

Regards.
Re: Eclipse 2020-09 (for Java) XML Editor shows new errors which were not there before. What to do? [message #1834545 is a reply to message #1834542] Thu, 12 November 2020 08:42 Go to previous message
master master is currently offline master masterFriend
Messages: 5
Registered: November 2020
Junior Member
Eitan Rosenberg wrote on Thu, 12 November 2020 07:40
Hi there,
I have Version: 2020-09 (4.17.0).
There are some settings that might do the job (I did not test it.)
Regards.


I turned off all these errors altogether - and none of them worked. As I said above, these are settings for "Validate" and it worked without error before. I even turned off "Validate" for verification, but in the XML Editor the error is still shown!
The error is only in XML Editor and these settings do not affect it!

[Updated on: Thu, 12 November 2020 08:42]

Report message to a moderator

Previous Topic:Error updating to Java 15
Next Topic:An internal error occurred during: "Loading referenced grammars". org/eclipse/jdt/core/IEl
Goto Forum:
  


Current Time: Tue Apr 20 02:05:27 GMT 2021

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

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

Back to the top