[ http://nagoya.apache.org/jira/browse/XERCESC-991?page=history ]

Alberto Massari updated XERCESC-991:
------------------------------------

    Priority: Major

> When calling getContentModel() on element it throws exception for empty elements
> --------------------------------------------------------------------------------
>
>          Key: XERCESC-991
>          URL: http://nagoya.apache.org/jira/browse/XERCESC-991
>      Project: Xerces-C++
>         Type: Bug
>   Components: Validating Parser (Schema) (Xerces 1.5 or up only)
>     Versions: 2.2.0
>  Environment: Operating System: Other
> Platform: Other
>     Reporter: Hima Mukkamala
>     Assignee: Xerces-C Developers Mailing List

>
> When getContentModel() is called on "elem where
> SchemaELementDecl* elem" for an empty element declaration,
> it throws an exception. Isn't it the right
> approach to return null similar to SchemaElementDecl::Simple
> typed elements.
> Fix would be to add this code in ComplexTypeInfo::makeContentModel
> // code
> else if (fContentType == SchemaElementDecl::Empty) {
>        // just return nothing
>     }
> in this function. 
> -thanks
> hima

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to