Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1630

Unclear error description when validation by schema

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.4.0
    • None
    • None
    • Solaris

    Description

      When using the Xerces to validate the xml by schema, for example, the content model is '((msisdn,imsi),region)', as you know, the msisdn and imsi is mandatory parameters, if the xml is missing the msisdn element, Xerces will report the error
      "Message: Element 'imsi' is not valid for content model:'((msisdn,imsi),region)'"!!

      I understand that the 'msisdn' is the first expected mandatory parameter, but xerces get the 'imsi' as the first parameter, so it complain the 'imsi' is not valid.

      But could it be possible to change the error description to make it more clear? like "msisdn is missing" something like that...

      thanks,
      //woods

      Attachments

        Activity

          People

            Unassigned Unassigned
            woods.wang woods wang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: