You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by "woods wang (JIRA)" <xe...@xml.apache.org> on 2006/09/11 12:57:22 UTC

[jira] Created: (XERCESC-1630) Unclear error description when validation by schema

Unclear error description when validation by schema
---------------------------------------------------

                 Key: XERCESC-1630
                 URL: http://issues.apache.org/jira/browse/XERCESC-1630
             Project: Xerces-C++
          Issue Type: Bug
          Components: Validating Parser (DTD)
    Affects Versions: 2.4.0
         Environment: Solaris
            Reporter: woods wang


When using the Xerces to validate the xml by schema, for example, the content modle 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

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Updated: (XERCESC-1630) Unclear error description when validation by schema

Posted by "Alberto Massari (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alberto Massari updated XERCESC-1630:
-------------------------------------

    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

  was:
When using the Xerces to validate the xml by schema, for example, the content modle 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

     Issue Type: Improvement  (was: Bug)

> Unclear error description when validation by schema
> ---------------------------------------------------
>
>                 Key: XERCESC-1630
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1630
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Validating Parser (DTD)
>    Affects Versions: 2.4.0
>         Environment: Solaris
>            Reporter: woods wang
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[jira] Closed: (XERCESC-1630) Unclear error description when validation by schema

Posted by "Boris Kolpackov (JIRA)" <xe...@xml.apache.org>.
     [ https://issues.apache.org/jira/browse/XERCESC-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Boris Kolpackov closed XERCESC-1630.
------------------------------------

    Resolution: Won't Fix

I don't think anyone will ever try to do this. The code base is already complex enough.

> Unclear error description when validation by schema
> ---------------------------------------------------
>
>                 Key: XERCESC-1630
>                 URL: https://issues.apache.org/jira/browse/XERCESC-1630
>             Project: Xerces-C++
>          Issue Type: Improvement
>          Components: Validating Parser (DTD)
>    Affects Versions: 2.4.0
>         Environment: Solaris
>            Reporter: woods wang
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org