summaryrefslogtreecommitdiff
path: root/examples/cxx/tree/performance/parsing.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/tree/performance/parsing.cxx')
-rw-r--r--examples/cxx/tree/performance/parsing.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cxx/tree/performance/parsing.cxx b/examples/cxx/tree/performance/parsing.cxx
index fd27fb2..3997ea6 100644
--- a/examples/cxx/tree/performance/parsing.cxx
+++ b/examples/cxx/tree/performance/parsing.cxx
@@ -90,6 +90,13 @@ parsing (const char* file, unsigned long iter, bool validate)
conf->setParameter (XMLUni::fgXercesSchema, true);
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
+
// If we are validating, pre-load and cache the schema.
//
parser->loadGrammar ("test.xsd", Grammar::SchemaGrammarType, true);