summaryrefslogtreecommitdiff
path: root/examples/cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-09-09 11:32:09 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-09-09 11:32:09 +0200
commit43e6677107cb3a7c7556933acd94f231f19a54aa (patch)
tree881aa8e9beb80d1f480fabd74fa37031e9290b56 /examples/cxx
parentfddeb5ddbd383b49bd1f6f04208d24023f8c3033 (diff)
Fix bug in example
Diffstat (limited to 'examples/cxx')
-rw-r--r--examples/cxx/tree/custom/comments/dom-parse.cxx6
1 files changed, 3 insertions, 3 deletions
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<DOMBuilder> 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);