summaryrefslogtreecommitdiffstats
path: root/src/uscxml/messages/Data.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/messages/Data.cpp')
-rw-r--r--src/uscxml/messages/Data.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uscxml/messages/Data.cpp b/src/uscxml/messages/Data.cpp
index 8853b19..51e1191 100644
--- a/src/uscxml/messages/Data.cpp
+++ b/src/uscxml/messages/Data.cpp
@@ -22,7 +22,9 @@
#include <boost/algorithm/string.hpp>
+#ifndef NO_XERCESC
#include "uscxml/util/DOM.h"
+#endif
#include "uscxml/interpreter/Logging.h"
@@ -262,6 +264,7 @@ std::string Data::toJSON(const Data& data) {
} else {
os << data.atom;
}
+#ifndef NO_XERCESC
} else if (data.node) {
std::ostringstream xmlSerSS;
xmlSerSS << *data.node;
@@ -270,6 +273,7 @@ std::string Data::toJSON(const Data& data) {
// boost::replace_all(xmlSer, "\n", "\\n");
// boost::replace_all(xmlSer, "\t", "\\t");
os << "\"" << jsonEscape(xmlSer) << "\"";
+#endif
} else {
if (data.type == Data::VERBATIM) {
os << "\"\""; // empty string