misleading information on well-formedness errors
Posted: Sun Oct 22, 2023 5:09 pm
While editing an XML-like document that has a well-formedness error, oXygen usefully gives a red squiggly underline at (or at least near) the problem and gives an error message (from Xerces, I think) at the bottom of the editing window (just above the Text and Grid tabs); furthermore it may make the GI of the element that contains the error red in the breadcrumb trail immediately above the editing area, and might turn some characters in the encoding area red (e.g. ‘&’ followed by something illegal). But the important bit (for this post) is the error summary near the middle of the very bottom row of the window. It says “Validation failed. Errors: 1”. If I request well-formedness checking it changes to “Well-formedness test - failed. Errors: 1”.
So far all is well and good (except for the minor issue that it starts out by saying it is a validation error when it really is a well-formedness error; but it is not lying — validation did fail). But if my XML-like document has 2+ well-formedness errors, the message at the bottom still says “Errors: 1”. I kinda understand why it says there is only one error … per the XML spec, upon coming across a well-formedness error normal processing stops, and an application is not at all required to continue. But it still strikes me as misleading.
How about dropping the error count and displaying “Document NOT well-formed!” or some such in red?
So far all is well and good (except for the minor issue that it starts out by saying it is a validation error when it really is a well-formedness error; but it is not lying — validation did fail). But if my XML-like document has 2+ well-formedness errors, the message at the bottom still says “Errors: 1”. I kinda understand why it says there is only one error … per the XML spec, upon coming across a well-formedness error normal processing stops, and an application is not at all required to continue. But it still strikes me as misleading.
How about dropping the error count and displaying “Document NOT well-formed!” or some such in red?