> "Kohli, Naveen" wrote:
> 
> Clean solution will be to use xercesc namespace in your code.
> 
> xercesc::DOMDocument

It is already done in the code below (XERCES_CPP_NAMESPACE_QUALIFIER
DOMDocument).
John uses Borland compiler as I can see from his previous posts. Borland
compiler support namespaces but xercesc does not know about this because
BorlandCDefs.hpp does not contain following define:

#define XERCES_HAS_CPP_NAMESPACE

So John can add this define to
src\xercesc\util\Compilers\BorlandCDefs.hpp
and rebuild xercesc library or don't include MSXML header files

> 
> -----Original Message-----
> From: John Meyer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, March 13, 2003 1:41 PM
> To: [EMAIL PROTECTED]
> Subject: Error
> 
> XMLPlatformUtils::Initialize();
> DOMImplementation *impl =
> DOMImplementationRegistry::getDOMImplementation(XMLString::transcode("core")
> 
> );
> XERCES_CPP_NAMESPACE_QUALIFIER DOMDocument *doc =
> impl->createDocument(0,XMLString::transcode("files"),0);
> DOMWriter *wri = impl->createDOMWriter();
> 
> //error:
> [C++ Error] Unit1.cpp(172): E2015 Ambiguity between 'DOMDocument' and
> 'Msxml::DOMDocument'
> 
> _________________________________________
> John Meyer
> Programmer
> ICQ#: 63450423
> More ways to contact me: http://wwp.icq.com/63450423
> _________________________________________
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to