aboutsummaryrefslogtreecommitdiff
path: root/libxsd/xsd/cxx/tree/serialization.txx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-09-19 10:19:48 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2014-09-19 10:19:48 +0200
commita066f175060a6ada5c60c378ca4dab6e9b571e35 (patch)
treeee2d1d119306d9d9cba390e6e93543f11993af9f /libxsd/xsd/cxx/tree/serialization.txx
parent169b95d1c079bcc12c2a9bc881ecf2cccf0b6029 (diff)
Don't use using namespace xercesc because of MSXML conflict
Diffstat (limited to 'libxsd/xsd/cxx/tree/serialization.txx')
-rw-r--r--libxsd/xsd/cxx/tree/serialization.txx10
1 files changed, 8 insertions, 2 deletions
diff --git a/libxsd/xsd/cxx/tree/serialization.txx b/libxsd/xsd/cxx/tree/serialization.txx
index 055f603..ef0a44c 100644
--- a/libxsd/xsd/cxx/tree/serialization.txx
+++ b/libxsd/xsd/cxx/tree/serialization.txx
@@ -97,10 +97,16 @@ namespace xsd
if (!x.null_content () && x.dom_content ().present ())
{
- // Clone the contents of the element.
+ // Cannot use 'using namespace' because of MSXML conflict.
//
- using namespace xercesc;
+ using xercesc::DOMAttr;
+ using xercesc::DOMNode;
+ using xercesc::DOMElement;
+ using xercesc::DOMDocument;
+ using xercesc::DOMNamedNodeMap;
+ // Clone the contents of the element.
+ //
DOMDocument& doc (*e.getOwnerDocument ());
const DOMElement& se (x.dom_content ().get ());
DOMNamedNodeMap& sa (*se.getAttributes ());