summaryrefslogtreecommitdiff
path: root/examples/cxx/parser
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/parser')
-rw-r--r--examples/cxx/parser/performance/driver.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/cxx/parser/performance/driver.cxx b/examples/cxx/parser/performance/driver.cxx
index 9e1d48d..0fe2f02 100644
--- a/examples/cxx/parser/performance/driver.cxx
+++ b/examples/cxx/parser/performance/driver.cxx
@@ -222,6 +222,13 @@ main (int argc, char* argv[])
parser->setFeature (XMLUni::fgXercesSchema, true);
parser->setFeature (XMLUni::fgXercesSchemaFullChecking, false);
+ // Xerces-C++ 3.1.0 is the first version with working multi import
+ // support.
+ //
+#if _XERCES_VERSION >= 30100
+ parser->setFeature (XMLUni::fgXercesHandleMultipleImports, true);
+#endif
+
parser->loadGrammar ("test.xsd", Grammar::SchemaGrammarType, true);
parser->setFeature (XMLUni::fgXercesUseCachedGrammarInParse, true);
}