From 8510f324a53ffd2dac41feea520acdf4c2443765 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 13 Nov 2013 07:47:39 +0200 Subject: Drop support for Xerces-C++ 2-series --- xsd-frontend/xml.hxx | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'xsd-frontend/xml.hxx') diff --git a/xsd-frontend/xml.hxx b/xsd-frontend/xml.hxx index a785eee..d8962a5 100644 --- a/xsd-frontend/xml.hxx +++ b/xsd-frontend/xml.hxx @@ -12,6 +12,7 @@ #include #include +#include // Check Xerces-C++ version. #include #include @@ -366,14 +367,7 @@ namespace XSDFrontend ns_prefix (Element const& e, String const& wns) { XMLChString ns (wns); - -#if _XERCES_VERSION >= 30000 - XMLCh const* p ( - e.dom_element ()->lookupPrefix (ns.c_str ())); -#else - XMLCh const* p ( - e.dom_element ()->lookupNamespacePrefix (ns.c_str (), false)); -#endif + XMLCh const* p (e.dom_element ()->lookupPrefix (ns.c_str ())); if (p == 0) { -- cgit v1.1