This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Using the XML Literal Editor in "XML Subelement" mode, when the user enters invalid XML code and "Ok" the editor correctly generates and displays an error message. If the user makes major changes, like deleting all code or even switching to "Text" mode, the error persists at the bottom of the editor. This persistence of the original error message is annoying and misleading. Steps: a) Bring up XML Literal Editor in "XML Subelement" mode b) Enter: abc c) Click "Ok" - "Content is not allowed in prolog." is displayed d) Make any change to the code, or mode of the editor. The message persists.
Error message (red font) is duplicated: if user enters invalid xml literal, error dialog is shown and ti is enough. Therefore, I hide error message (with red font) at all.
Created attachment 103279 [details] Screenshot of verification
The error messages are not shown anymore. The screenshot of the error dialog is attached. This issue is verified to work correctly in the CAPS M5 (20101103-1248) build. This issue can be closed.