aboutsummaryrefslogtreecommitdiff
path: root/libxsd
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 /libxsd
parent4b3b5d47300f27dfda25caa9deff3f5ab1560cc8 (diff)
Configure Xerces-C++ not to print extra newline for 1st level elements
Diffstat (limited to 'libxsd')
-rw-r--r--libxsd/xsd/cxx/xml/dom/serialization-source.txx7
1 files changed, 7 insertions, 0 deletions
diff --git a/libxsd/xsd/cxx/xml/dom/serialization-source.txx b/libxsd/xsd/cxx/xml/dom/serialization-source.txx
index efd4141..f96dcb4 100644
--- a/libxsd/xsd/cxx/xml/dom/serialization-source.txx
+++ b/libxsd/xsd/cxx/xml/dom/serialization-source.txx
@@ -310,8 +310,15 @@ namespace xsd
if (!(flags & dont_pretty_print) &&
conf->canSetParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true))
+ {
conf->setParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true);
+ // Don't add extra new lines between first-level elements.
+ //
+ if (conf->canSetParameter (XMLUni::fgDOMWRTXercesPrettyPrint, true))
+ conf->setParameter (XMLUni::fgDOMWRTXercesPrettyPrint, false);
+ }
+
// See if we need to write XML declaration.
//
if ((flags & no_xml_declaration) &&