From 041a22af66e682c6fc60f91a11baa11ab9783add Mon Sep 17 00:00:00 2001
From: Tinny Ng <tng@apache.org>
Date: Tue, 13 Nov 2001 13:21:59 +0000
Subject: [PATCH] Schema fix: Entities should be unparsed.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173216 13f79535-47bb-0310-9956-ffa450edef68
---
 src/validators/datatype/ENTITYDatatypeValidator.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/validators/datatype/ENTITYDatatypeValidator.cpp b/src/validators/datatype/ENTITYDatatypeValidator.cpp
index fb5cbe594..758fdbc6f 100644
--- a/src/validators/datatype/ENTITYDatatypeValidator.cpp
+++ b/src/validators/datatype/ENTITYDatatypeValidator.cpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.7  2001/11/13 13:21:59  tng
+ * Schema fix: Entities should be unparsed.
+ *
  * Revision 1.6  2001/10/09 20:50:27  peiyongz
  * init(): take 1 arg
  *
@@ -139,7 +142,7 @@ void ENTITYDatatypeValidator::validate(const XMLCh* const content)
         DTDEntityDecl* decl = fEntityDeclPool->getByKey(content);
 
         if (!decl                ||
-            (decl->isUnparsed())  )
+            (!decl->isUnparsed())  )
         {
             ThrowXML1(InvalidDatatypeValueException
                     , XMLExcepts::VALUE_ENTITY_Invalid
-- 
GitLab