aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/tree/custom/comments/dom-parse.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-05 06:49:41 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-05 06:49:41 +0200
commit9878dfe26a08ea5638c562c22c9becd11d462015 (patch)
tree482b77889d4bc7e82bdc600e85450aa2edf21e43 /examples/cxx/tree/custom/comments/dom-parse.cxx
parentfccba6f6bc4c3960473423656563045dcc6c2067 (diff)
Enable multiple import support for Xerces-C++ 3.1.0 or later
Diffstat (limited to 'examples/cxx/tree/custom/comments/dom-parse.cxx')
-rw-r--r--examples/cxx/tree/custom/comments/dom-parse.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cxx/tree/custom/comments/dom-parse.cxx b/examples/cxx/tree/custom/comments/dom-parse.cxx
index 7ad6aa5..1ba62e5 100644
--- a/examples/cxx/tree/custom/comments/dom-parse.cxx
+++ b/examples/cxx/tree/custom/comments/dom-parse.cxx
@@ -68,6 +68,13 @@ parse (std::istream& is, const std::string& id, bool validate)
conf->setParameter (XMLUni::fgXercesSchema, validate);
conf->setParameter (XMLUni::fgXercesSchemaFullChecking, false);
+ // Xerces-C++ 3.1.0 is the first version with working multi import
+ // support.
+ //
+#if _XERCES_VERSION >= 30100
+ conf->setParameter (XMLUni::fgXercesHandleMultipleImports, true);
+#endif
+
// We will release the DOM document ourselves.
//
conf->setParameter (XMLUni::fgXercesUserAdoptsDOMDocument, true);