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 "Boris Kolpackov (JIRA)" <xe...@xml.apache.org> on 2009/11/18 08:06:39 UTC
[jira] Closed: (XERCESC-991) When calling getContentModel() on
element it throws exception for empty elements
[ https://issues.apache.org/jira/browse/XERCESC-991?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Boris Kolpackov closed XERCESC-991.
-----------------------------------
Resolution: Invalid
Assignee: (was: Xerces-C Developers Mailing List)
Please provide a test case if you believe this is still a problem.
> When calling getContentModel() on element it throws exception for empty elements
> --------------------------------------------------------------------------------
>
> Key: XERCESC-991
> URL: https://issues.apache.org/jira/browse/XERCESC-991
> Project: Xerces-C++
> Issue Type: Bug
> Components: Validating Parser (XML Schema)
> Affects Versions: 2.2.0
> Environment: Operating System: Other
> Platform: Other
> Reporter: Hima Mukkamala
>
> 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.
-
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