Integrate parser pools into library.
[shibboleth/xmltooling.git] / xmltooling / impl / UnknownElement.cpp
index 50c1954..09dbbdd 100644 (file)
@@ -107,7 +107,7 @@ DOMElement* UnknownElementImpl::marshall(DOMDocument* document, MarshallingConte
     MemBufInputSource src(reinterpret_cast<const XMLByte*>(m_xml.c_str()),m_xml.length(),"UnknownElementImpl");\r
     Wrapper4InputSource dsrc(&src,false);\r
     log.debug("parsing XML back into DOM tree");\r
-    DOMDocument* internalDoc=XMLToolingInternalConfig::getInternalConfig().m_parserPool->parse(dsrc);\r
+    DOMDocument* internalDoc=XMLToolingConfig::getConfig().getParser().parse(dsrc);\r
     if (document) {\r
         // The caller insists on using his own document, so we now have to import the thing\r
         // into it. Then we're just dumping the one we built.\r
@@ -166,7 +166,7 @@ DOMElement* UnknownElementImpl::marshall(DOMElement* parentElement, MarshallingC
     MemBufInputSource src(reinterpret_cast<const XMLByte*>(m_xml.c_str()),m_xml.length(),"UnknownElementImpl");\r
     Wrapper4InputSource dsrc(&src,false);\r
     log.debug("parsing XML back into DOM tree");\r
-    DOMDocument* internalDoc=XMLToolingInternalConfig::getInternalConfig().m_parserPool->parse(dsrc);\r
+    DOMDocument* internalDoc=XMLToolingConfig::getConfig().getParser().parse(dsrc);\r
     \r
     log.debug("reimporting new DOM into caller-supplied document");\r
     cachedDOM=static_cast<DOMElement*>(parentElement->getOwnerDocument()->importNode(internalDoc->getDocumentElement(), true));\r