--- a/src/CMakeLists.txt Thu Jan 10 19:50:21 2019 +0100
+++ b/src/CMakeLists.txt Thu Jan 10 20:05:13 2019 +0100
@@ -18,7 +18,7 @@
# Relpipe libraries:
INCLUDE(FindPkgConfig)
-pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp)
+pkg_check_modules (RELPIPE_LIBS relpipe-lib-writer.cpp relpipe-lib-cli.cpp xerces-c)
include_directories(${RELPIPE_LIBS_INCLUDE_DIRS})
link_directories(${RELPIPE_LIBS_LIBRARY_DIRS})
--- a/src/XMLCommand.h Thu Jan 10 19:50:21 2019 +0100
+++ b/src/XMLCommand.h Thu Jan 10 20:05:13 2019 +0100
@@ -23,6 +23,11 @@
#include <vector>
#include <algorithm>
+#include <xercesc/sax2/SAX2XMLReader.hpp>
+#include <xercesc/sax2/XMLReaderFactory.hpp>
+#include <xercesc/sax2/DefaultHandler.hpp>
+#include <xercesc/util/XMLString.hpp>
+
#include <relpipe/writer/typedefs.h>
namespace relpipe {
@@ -34,6 +39,7 @@
void process(std::istream& input, std::ostream& output) {
using namespace relpipe::writer;
+ using namespace xercesc;
std::shared_ptr<RelationalWriter> writer(Factory::create(output));
// TODO: remove demo