src/XMLTableCommand.h
branchv_0
changeset 14 5be268bc4c69
parent 8 8730e2d0db0e
child 15 917b8fbd29b9
--- a/src/XMLTableCommand.h	Sat Oct 24 00:08:17 2020 +0200
+++ b/src/XMLTableCommand.h	Sun Oct 25 21:48:11 2020 +0100
@@ -30,6 +30,7 @@
 #include <relpipe/writer/typedefs.h>
 
 #include "Configuration.h"
+#include "XMLDocumentConstructor.h"
 
 namespace relpipe {
 namespace in {
@@ -86,7 +87,8 @@
 		std::shared_ptr<RelationalWriter> writer(Factory::create(output));
 
 		xmlpp::DomParser parser;
-		parser.parse_stream(input);
+		XMLDocumentConstructor documentConstructor(&input, &parser);
+		documentConstructor.process();
 		if (configuration.xinclude) parser.get_document()->process_xinclude(true);
 		xmlpp::Element* root = parser.get_document()->get_root_node();