From d2566c96cd0f0c720faf9a5507bdd3dc3af8f2a5 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 19 Mar 2014 12:20:56 +0200 Subject: Configure Xerces-C++ not to print extra newline for 1st level elements --- libxsd/xsd/cxx/xml/dom/serialization-source.txx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libxsd/xsd') 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) && -- cgit v1.1