From 89f377dfe2a540ec5b6b06dd1ece36e9dee9dfb5 Mon Sep 17 00:00:00 2001
From: Khaled Noaman <knoaman@apache.org>
Date: Mon, 4 Mar 2002 15:09:50 +0000
Subject: [PATCH] Fix for bug 6834.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173556 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/validators/schema/SchemaElementDecl.hpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xercesc/validators/schema/SchemaElementDecl.hpp b/src/xercesc/validators/schema/SchemaElementDecl.hpp
index 82fc9d4ae..142fcefda 100644
--- a/src/xercesc/validators/schema/SchemaElementDecl.hpp
+++ b/src/xercesc/validators/schema/SchemaElementDecl.hpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.3  2002/03/04 15:09:50  knoaman
+ * Fix for bug 6834.
+ *
  * Revision 1.2  2002/02/06 22:30:50  knoaman
  * Added a new attribute to store the wild card information for elements of type 'anyType'.
  *
@@ -385,6 +388,10 @@ inline SchemaElementDecl::ModelTypes SchemaElementDecl::getModelType() const
 
 inline DatatypeValidator* SchemaElementDecl::getDatatypeValidator() const
 {
+    if (fXsiComplexTypeInfo) {
+        return fXsiComplexTypeInfo->getDatatypeValidator();
+    }
+
     return fDatatypeValidator;
 }
 
-- 
GitLab