--- a/nbproject/configurations.xml Sun Dec 27 21:57:52 2020 +0100
+++ b/nbproject/configurations.xml Wed Dec 30 00:39:03 2020 +0100
@@ -83,6 +83,15 @@
<pElem>../relpipe-lib-writer.cpp/include</pElem>
<pElem>../relpipe-lib-common.cpp/include</pElem>
<pElem>../relpipe-lib-cli.cpp/include</pElem>
+ <pElem>/usr/include/libxml++-2.6</pElem>
+ <pElem>/usr/lib/x86_64-linux-gnu/libxml++-2.6/include</pElem>
+ <pElem>/usr/include/libxml2</pElem>
+ <pElem>/usr/include/glibmm-2.4</pElem>
+ <pElem>/usr/lib/x86_64-linux-gnu/glibmm-2.4/include</pElem>
+ <pElem>/usr/include/glib-2.0</pElem>
+ <pElem>/usr/lib/x86_64-linux-gnu/glib-2.0/include</pElem>
+ <pElem>/usr/include/sigc++-2.0</pElem>
+ <pElem>/usr/lib/x86_64-linux-gnu/sigc++-2.0/include</pElem>
<pElem>build/Debug/src</pElem>
</incDir>
</ccTool>
--- a/src/CMakeLists.txt Sun Dec 27 21:57:52 2020 +0100
+++ b/src/CMakeLists.txt Wed Dec 30 00:39:03 2020 +0100
@@ -17,7 +17,7 @@
# Relpipe libraries:
INCLUDE(FindPkgConfig)
-pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp)
+pkg_check_modules (RELPIPE_LIBS relpipe-lib-reader.cpp relpipe-lib-writer.cpp relpipe-lib-cli.cpp libxml++-2.6)
include_directories(${RELPIPE_LIBS_INCLUDE_DIRS})
link_directories(${RELPIPE_LIBS_LIBRARY_DIRS})
--- a/src/XPathHandler.h Sun Dec 27 21:57:52 2020 +0100
+++ b/src/XPathHandler.h Wed Dec 30 00:39:03 2020 +0100
@@ -22,6 +22,8 @@
#include <codecvt>
#include <regex>
+#include <libxml++-2.6/libxml++/libxml++.h>
+
#include <relpipe/common/type/typedefs.h>
#include <relpipe/reader/TypeId.h>
#include <relpipe/reader/handlers/RelationalReaderStringHandler.h>
@@ -45,6 +47,8 @@
std::vector<relpipe::reader::handlers::AttributeMetadata> currentReaderMetadata;
std::vector<relpipe::writer::AttributeMetadata> currentWriterMetadata;
size_t currentAttributeIndex = 0;
+
+ xmlpp::DomParser dom;
void copyInputAttributesToOutput() {
for (auto rm : currentReaderMetadata) currentWriterMetadata.push_back({rm.getAttributeName(), relationalWriter->toTypeId(rm.getTypeName())});