the macro XERCES_CPP_NAMESPACE_BEGIN expands to "namespace
XERCES_CPP_NAMESPACE {", use XERCES_CPP_NAMESPACE_QUALIFIER instead:XERCES_CPP_NAMESPACE_QUALIFIER XMLString::transcode(...) ... mfg/regards Tobias -----Urspr�ngliche Nachricht----- Von: Liu, Richard [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 3. M�rz 2004 18:57 An: [email protected] Betreff: A question of "parse error befor '{' token" error Hi, I was trying to start a DOM tree using DOMBuilder by read an xml file, this should be easy to do. However, I got an compiler error on the following three sentences (a, b, c). The error says: "parse error befor '{' token". So I am stucked. I could not see anything wrong with the code. Do I miss anything in the compiler definition ? (see folloing compiler option). I am runing on (Red Hat Linux 8.0 3.2-7) using gcc version 3.2 20020903. #include <xercesc/dom/DOM.hpp> #include <xercesc/util/XMLString.hpp> #include <xercesc/util/PlatformUtils.hpp> a) XERCES_CPP_NAMESPACE_BEGIN::XMLString::transcode("LS", tempStr, 99); b) XERCES_CPP_NAMESPACE_BEGIN::DOMImplementation *impl = DOMImplementationRegistry::getDOMImplementation(tempStr); c) XERCES_CPP_NAMESPACE_BEGIN::DOMBuilder * parser = ((DOMImplementationLS*) impl) -> createDOMBuilder(DOMImplementationLS::MODE::SYNCHRONOUS, 0); Thanks a lot for your help ! Sincerely Richard Liu //////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////// /////////////////////////////////////////// P.S: My compiling option is: g++ -c -g -D_DEBUG -Wno-deprecated -LANG:std -D_REENTRANT -D_PTHREADS -I/vobs/das_cdas_linux/scWrappers/include -I/vobs/das_cdas_linux/utl/include -I/simsan1/tools/linux/xalan-c-src_1_6_0/xalan/xml-xalan/c/src/xalanc -I/simsan1/tools/linux/xalan-c-src_1_6_0/xalan/xml-xalan/c/src -I/vobs/das_cots_linux/xerces-c-src_2_3_0/include -I/vobs/sc_systemServices/include -I/soscoe/sc/sc_communication/prototype/include -I/soscoe/sc/sc_communication/prototype/src/GeneratedCode -I/soscoe/sc/sc_informationAssurance/i nclude -I/soscoe/OEP_B2_3/OFP/OCP/Infrastructure/PlatformServices/ACE_Wrappers -I/soscoe/OEP_B2_3/OFP/OCP/Infrastructure/PlatformServices/ACE_Wrappers/ ace -I/soscoe/ImWrappers/src/include -I/soscoe/ImServices -I/soscoe/xerces-c-src_2_3_0/include -I/soscoe/cppunit/include C2DSSConnection.cxx
