You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2009/07/29 15:46:33 UTC
svn commit: r798905 -
/xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp
Author: amassari
Date: Wed Jul 29 13:46:33 2009
New Revision: 798905
URL: http://svn.apache.org/viewvc?rev=798905&view=rev
Log:
If there is no complex type in the stack, fallback to the schema element definition, like it is done a few lines earlier (XERCESC-1808)
Modified:
xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp
Modified: xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp
URL: http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp?rev=798905&r1=798904&r2=798905&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp (original)
+++ xerces/c/trunk/src/xercesc/validators/schema/SchemaValidator.cpp Wed Jul 29 13:46:33 2009
@@ -134,7 +134,9 @@
}
else {
// Get the element's content model or fault it in
- XMLContentModel* elemCM = currType->getContentModel();
+ XMLContentModel* elemCM = (currType)
+ ? currType->getContentModel()
+ : ((SchemaElementDecl*)elemDecl)->getContentModel();
// Ask it to validate and return its return
unsigned int emptyNS = getScanner()->getEmptyNamespaceId();
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org