diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-19 10:19:48 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2014-09-19 10:19:48 +0200 |
commit | a066f175060a6ada5c60c378ca4dab6e9b571e35 (patch) | |
tree | ee2d1d119306d9d9cba390e6e93543f11993af9f /libxsd/xsd/cxx/xml | |
parent | 169b95d1c079bcc12c2a9bc881ecf2cccf0b6029 (diff) |
Don't use using namespace xercesc because of MSXML conflict
Diffstat (limited to 'libxsd/xsd/cxx/xml')
-rw-r--r-- | libxsd/xsd/cxx/xml/dom/serialization-header.txx | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/libxsd/xsd/cxx/xml/dom/serialization-header.txx b/libxsd/xsd/cxx/xml/dom/serialization-header.txx index 6e58cfd..14a6d95 100644 --- a/libxsd/xsd/cxx/xml/dom/serialization-header.txx +++ b/libxsd/xsd/cxx/xml/dom/serialization-header.txx @@ -120,11 +120,19 @@ namespace xsd void clear (xercesc::DOMElement& e) { - using namespace xercesc; + // Cannot use 'using namespace' because of MSXML conflict. + // + using xercesc::XMLUni; + using xercesc::XMLString; + using xercesc::SchemaSymbols; + + using xercesc::DOMNode; + using xercesc::DOMAttr; + using xercesc::DOMNamedNodeMap; // Remove child nodes. // - while (xercesc::DOMNode* n = e.getFirstChild ()) + while (DOMNode* n = e.getFirstChild ()) { e.removeChild (n); n->release (); @@ -149,7 +157,7 @@ namespace xsd if (ns != 0) { - if (XMLString::equals (ns, xercesc::XMLUni::fgXMLNSURIName)) + if (XMLString::equals (ns, XMLUni::fgXMLNSURIName)) continue; if (XMLString::equals (ns, SchemaSymbols::fgURI_XSI)) |