From 8286ac511144e4f17d34eac9affb97e50646344a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Wed, 23 Jul 2014 15:25:44 +0200 Subject: Imported Upstream version 4.0.0 --- xsd/examples/cxx/tree/messaging/dom-serialize.cxx | 27 +---------------------- 1 file changed, 1 insertion(+), 26 deletions(-) (limited to 'xsd/examples/cxx/tree/messaging/dom-serialize.cxx') diff --git a/xsd/examples/cxx/tree/messaging/dom-serialize.cxx b/xsd/examples/cxx/tree/messaging/dom-serialize.cxx index c0f4311..dbf3370 100644 --- a/xsd/examples/cxx/tree/messaging/dom-serialize.cxx +++ b/xsd/examples/cxx/tree/messaging/dom-serialize.cxx @@ -1,5 +1,4 @@ // file : examples/cxx/tree/messaging/dom-serialize.cxx -// author : Boris Kolpackov // copyright : not copyrighted - public domain #include "dom-serialize.hxx" @@ -38,8 +37,6 @@ serialize (std::ostream& os, xml::dom::ostream_format_target oft (os); -#if _XERCES_VERSION >= 30000 - // Create a DOMSerializer. // xml::dom::auto_ptr writer ( @@ -55,6 +52,7 @@ serialize (std::ostream& os, // conf->setParameter (XMLUni::fgDOMWRTDiscardDefaultContent, true); conf->setParameter (XMLUni::fgDOMWRTFormatPrettyPrint, true); + conf->setParameter (XMLUni::fgDOMWRTXercesPrettyPrint, false); xml::dom::auto_ptr out (impl->createLSOutput ()); out->setEncoding (xml::string (encoding).c_str ()); @@ -62,28 +60,5 @@ serialize (std::ostream& os, writer->write (&doc, out.get ()); -#else - - // Create a DOMWriter. - // - xml::dom::auto_ptr writer (impl->createDOMWriter ()); - - // Set error handler. - // - writer->setErrorHandler (&ehp); - - // Set encoding. - // - writer->setEncoding(xml::string (encoding).c_str ()); - - // Set some generally nice features. - // - writer->setFeature (XMLUni::fgDOMWRTDiscardDefaultContent, true); - writer->setFeature (XMLUni::fgDOMWRTFormatPrettyPrint, true); - - writer->writeNode (&oft, doc); - -#endif - eh.throw_if_failed > (); } -- cgit v1.2.3