Hi Michael, Michael Weitzel <[EMAIL PROTECTED]> writes:
> first a question: how do I detect which version of Xerces C is > installed? My current interface to Xerces 2.7.0 uses DOMBuilder, which > is deprecated in 3.0. I already switched to DOMLSParser and it works > fine -- but the resulting source code is incompatible with 2.7.0. Is > there a clean way to detect the version? (other than looking for the > DOMLSParser/DOMBuilder classes). I use the _XERCES_VERSION macro: #if _XERCES_VERSION >= 30000 // 3.0.0 and up // #else // 2.x.y // #endif Boris -- Boris Kolpackov, Code Synthesis Tools http://codesynthesis.com/~boris/blog Open source XML data binding for C++: http://codesynthesis.com/products/xsd Mobile/embedded validating XML parsing: http://codesynthesis.com/products/xsde
