From b83217f186fbbe4f0f86bc9f92ef8a3a82f9e525 Mon Sep 17 00:00:00 2001 From: jez_higgins <> Date: Mon, 28 Apr 2003 14:45:58 +0000 Subject: [PATCH] No longer tries to expand refs to undeclared entities --- DOM/SAX2DOM/SAX2DOM.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DOM/SAX2DOM/SAX2DOM.h b/DOM/SAX2DOM/SAX2DOM.h index 6c04294f..946591c4 100644 --- a/DOM/SAX2DOM/SAX2DOM.h +++ b/DOM/SAX2DOM/SAX2DOM.h @@ -72,7 +72,7 @@ class Parser : private SAX::basic_DefaultHandler2 } // catch parser.setFeature(fNames.namespaces, true); parser.setFeature(fNames.namespace_prefixes, true); - parser.setFeature(fNames.external_general, true); + //parser.setFeature(fNames.external_general, true); parser.parse(source); @@ -216,7 +216,7 @@ class Parser : private SAX::basic_DefaultHandler2 { cachedCurrent_ = currentNode_; currentNode_ = declaredEntities_[name]; - if(currentNode_.hasChildNodes() == true) // already populated + if(currentNode_ != 0 && currentNode_.hasChildNodes() == true) // already populated currentNode_ = 0; } } // startEntity