diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2013-11-13 07:47:39 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2013-11-13 07:47:39 +0200 |
commit | 8510f324a53ffd2dac41feea520acdf4c2443765 (patch) | |
tree | 89d67b46d885c3b7c8c7881ba97ab55fc4dcd42d /xsd-frontend/xml.hxx | |
parent | d79dc02eab2a560dc075ebbbe3bf14f62082ab5f (diff) |
Drop support for Xerces-C++ 2-series
Diffstat (limited to 'xsd-frontend/xml.hxx')
-rw-r--r-- | xsd-frontend/xml.hxx | 10 |
1 files changed, 2 insertions, 8 deletions
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 <xercesc/dom/DOM.hpp> #include <xercesc/util/XMLString.hpp> +#include <xsd-frontend/version.hxx> // Check Xerces-C++ version. #include <xsd-frontend/types.hxx> #include <xsd-frontend/schema-dom-parser.hxx> @@ -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) { |