DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22778>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22778 When calling getContentModel() on element it throws exception for empty elements Summary: When calling getContentModel() on element it throws exception for empty elements Product: Xerces-C++ Version: 2.2.0 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Validating Parser (Schema) (Xerces 1.5 or up only) AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]