aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/tree/messaging
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-03-19 12:20:56 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-03-19 12:20:56 +0200
commitd2566c96cd0f0c720faf9a5507bdd3dc3af8f2a5 (patch)
tree7606ff7634206ae0d81266ff807280b2b93e43b7 /examples/cxx/tree/messaging
parent4b3b5d47300f27dfda25caa9deff3f5ab1560cc8 (diff)
Configure Xerces-C++ not to print extra newline for 1st level elements
Diffstat (limited to 'examples/cxx/tree/messaging')
-rw-r--r--examples/cxx/tree/messaging/dom-serialize.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/cxx/tree/messaging/dom-serialize.cxx b/examples/cxx/tree/messaging/dom-serialize.cxx
index e303e9c..f6ce4e4 100644
--- a/examples/cxx/tree/messaging/dom-serialize.cxx
+++ b/examples/cxx/tree/messaging/dom-serialize.cxx
@@ -53,6 +53,7 @@ serialize (std::ostream& os,
//
conf->setParameter (XMLUni::fgDOMWRTDiscardDefaultContent, true);
conf->setParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true);
+ conf->setParameter (XMLUni::fgDOMWRTXercesPrettyPrint, false);
xml::dom::auto_ptr<DOMLSOutput> out (impl->createLSOutput ());
out->setEncoding (xml::string (encoding).c_str ());