diff options
Diffstat (limited to 'libxsd/xsd/cxx/xml/dom')
-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)) |