From a066f175060a6ada5c60c378ca4dab6e9b571e35 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 19 Sep 2014 10:19:48 +0200 Subject: Don't use using namespace xercesc because of MSXML conflict --- libxsd/xsd/cxx/xml/dom/serialization-header.txx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'libxsd/xsd/cxx/xml/dom/serialization-header.txx') 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)) -- cgit v1.1