From 43e6677107cb3a7c7556933acd94f231f19a54aa Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Mon, 9 Sep 2013 11:32:09 +0200 Subject: Fix bug in example --- examples/cxx/tree/custom/comments/dom-parse.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/cxx/tree/custom/comments/dom-parse.cxx') diff --git a/examples/cxx/tree/custom/comments/dom-parse.cxx b/examples/cxx/tree/custom/comments/dom-parse.cxx index 1ba62e5..d8841c5 100644 --- a/examples/cxx/tree/custom/comments/dom-parse.cxx +++ b/examples/cxx/tree/custom/comments/dom-parse.cxx @@ -39,9 +39,9 @@ parse (std::istream& is, const std::string& id, bool validate) DOMConfiguration* conf (parser->getDomConfig ()); - // Discard comment nodes in the document. + // Preserve comment nodes in the document. // - conf->setParameter (XMLUni::fgDOMComments, false); + conf->setParameter (XMLUni::fgDOMComments, true); // Enable datatype normalization. // @@ -92,7 +92,7 @@ parse (std::istream& is, const std::string& id, bool validate) xml::dom::auto_ptr parser ( impl->createDOMBuilder (DOMImplementationLS::MODE_SYNCHRONOUS, 0)); - parser->setFeature (XMLUni::fgDOMComments, false); + parser->setFeature (XMLUni::fgDOMComments, true); parser->setFeature (XMLUni::fgDOMDatatypeNormalization, true); parser->setFeature (XMLUni::fgDOMEntities, false); parser->setFeature (XMLUni::fgDOMNamespaces, true); -- cgit v1.1