Integrate parser pools into library.
[shibboleth/cpp-xmltooling.git] / xmltoolingtest / MarshallingTest.h
index 55f6f73..0b3e056 100644 (file)
@@ -47,7 +47,7 @@ public:
 \r
         string path=data_path + "SimpleXMLObjectWithAttribute.xml";\r
         ifstream fs(path.c_str());\r
-        DOMDocument* doc=nonvalidatingPool->parse(fs);\r
+        DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);\r
         TS_ASSERT(doc!=NULL);\r
 \r
         TS_ASSERT(rootElement->isEqualNode(doc->getDocumentElement()));\r
@@ -67,7 +67,7 @@ public:
 \r
         string path=data_path + "SimpleXMLObjectWithContent.xml";\r
         ifstream fs(path.c_str());\r
-        DOMDocument* doc=nonvalidatingPool->parse(fs);\r
+        DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);\r
         TS_ASSERT(doc!=NULL);\r
 \r
         TS_ASSERT(rootElement->isEqualNode(doc->getDocumentElement()));\r
@@ -107,7 +107,7 @@ public:
 \r
         string path=data_path + "SimpleXMLObjectWithChildren.xml";\r
         ifstream fs(path.c_str());\r
-        DOMDocument* doc=nonvalidatingPool->parse(fs);\r
+        DOMDocument* doc=XMLToolingConfig::getConfig().getParser().parse(fs);\r
         TS_ASSERT(doc!=NULL);\r
 \r
         TS_ASSERT(rootElement->isEqualNode(doc->getDocumentElement()));\r