summaryrefslogtreecommitdiff
path: root/examples/cxx/tree/xpath/dom-parse.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/tree/xpath/dom-parse.cxx')
-rw-r--r--examples/cxx/tree/xpath/dom-parse.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cxx/tree/xpath/dom-parse.cxx b/examples/cxx/tree/xpath/dom-parse.cxx
index 84ff0af..82e87b6 100644
--- a/examples/cxx/tree/xpath/dom-parse.cxx
+++ b/examples/cxx/tree/xpath/dom-parse.cxx
@@ -63,6 +63,13 @@ parse (std::istream& is,
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);