From ee199f0547fdbf1555213ec1aece19baf72db2a1 Mon Sep 17 00:00:00 2001
From: Alberto Massari <amassari@apache.org>
Date: Tue, 6 Apr 2004 14:42:34 +0000
Subject: [PATCH] DTDs included from XML Schema were not opened using the
 entity resolver specified by the user (bug# 27008)

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175855 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/validators/schema/XSDDOMParser.cpp | 9 +++++++++
 src/xercesc/validators/schema/XSDDOMParser.hpp | 2 ++
 2 files changed, 11 insertions(+)

diff --git a/src/xercesc/validators/schema/XSDDOMParser.cpp b/src/xercesc/validators/schema/XSDDOMParser.cpp
index a49b28ce8..2d6c67dbd 100644
--- a/src/xercesc/validators/schema/XSDDOMParser.cpp
+++ b/src/xercesc/validators/schema/XSDDOMParser.cpp
@@ -557,4 +557,13 @@ InputSource* XSDDOMParser::resolveEntity(const XMLCh* const publicId,
     return 0;
 }
 
+InputSource*
+XSDDOMParser::resolveEntity(XMLResourceIdentifier* resourceIdentifier)
+{
+    if (fUserEntityHandler)
+        return fUserEntityHandler->resolveEntity(resourceIdentifier);
+
+    return 0;
+}
+
 XERCES_CPP_NAMESPACE_END
diff --git a/src/xercesc/validators/schema/XSDDOMParser.hpp b/src/xercesc/validators/schema/XSDDOMParser.hpp
index a1a7dcbfd..8a88e7d54 100644
--- a/src/xercesc/validators/schema/XSDDOMParser.hpp
+++ b/src/xercesc/validators/schema/XSDDOMParser.hpp
@@ -306,6 +306,8 @@ public :
         , const XMLCh* const    baseURI = 0
     );
 
+    virtual InputSource* resolveEntity(XMLResourceIdentifier* resourceIdentifier);
+
 protected :
     // -----------------------------------------------------------------------
     //  Protected Helper methods
-- 
GitLab