[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XSD error cvc-elt is plain misleading

  • From: Rick Jelliffe <rjelliffe@allette.com.au>
  • To: xml-dev <xml-dev@lists.xml.org>
  • Date: Wed, 14 Nov 2018 12:13:39 +1100

XSD error cvc-elt is plain misleading
One of the nice things of XSD is that it enumerates the errors. This then allows the potential causes to be listed, and a tool can then give very specific information. And the developer or user of the schema will then think "Hurray, this is all so easy, I feel so empowered."

So where does it go wrong? I think there is a problem that some of the standard messages actually misdirect attention away from what is useful: they focus on the proximate cause not the efficient cause, IYKWIM.

For example, the most basic error, cvc-elt-1: you can see the typical kinds of description for it here.  It will give you an error like:

cvc-elt.1: Cannot find the declaration of element 'unobtanium'.

But this is misleading.  Most times I get this error, the problem is not that it cannot find a declaration, that is actually another symptom. The problem is that it does not have a schema with a declaration for that element in that namespace.    You should not be detectiving why isn't the declaration showing up in my presumably correct schema, but why don't I have the correct schema.  The user/developer has to go through a WTF cycle rather than just a Whoops instant.

Systems that pretend to report diagnostics (efficient or triggering causes) when they just present more symptoms (proximate cause) are the bane of the computing industry.

Regards
Rick





[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.