From 9878dfe26a08ea5638c562c22c9becd11d462015 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 5 Nov 2009 06:49:41 +0200 Subject: Enable multiple import support for Xerces-C++ 3.1.0 or later --- examples/cxx/tree/streaming/parser.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'examples/cxx/tree/streaming') diff --git a/examples/cxx/tree/streaming/parser.cxx b/examples/cxx/tree/streaming/parser.cxx index 1a0fa73..77fc6cc 100644 --- a/examples/cxx/tree/streaming/parser.cxx +++ b/examples/cxx/tree/streaming/parser.cxx @@ -99,6 +99,13 @@ parser_impl () parser_->setFeature (XMLUni::fgXercesValidationErrorAsFatal, 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_->setErrorHandler (&error_proxy_); parser_->setContentHandler (this); } -- cgit v1.1