Why do I get compilation error saying DOMDocument was declared twice using Microsoft Visual C++?
Your application somehow has picked up the Microsoft SDK header Msxml.h
which has its own typedef of DOMDocument
. This confuses
with the &XercesCName; &XercesC3Version; &XercesC3Namespace;::DOMDocument
and thus lead to the compilation errors.
Qualifier the use of DOMDocument in your application explicitly e.g.,
xercesc::DOMDocument* doc;
will eliminate these compilation problems. Alternatively, you
may want to get rid of the Msxml.h
header inclusion.
Why does my application give unresolved linking errors?
Please check the following:
I cannot run the sample applications. What is wrong?
In order to run an application built using &XercesCProjectName; you must set up your path and library search path properly. For more information refer to the Installation instructions.
Why my document is valid on some platform while invalid on others?
The parser relies on the system call, strtod(), to parse a string representation of a double/float data. In the case of no invalid characters found, the strtod() returns a double/float value if it is representable on that platform, or raises ERANGE to indicate either underflow or underflow occurs. And the parser assigns zero to the said data if underflow is found.
The threshold, where the strtod() decides if an underflow occurs, varies on platforms. On Windows, it is roughly the order of e-308, on Linux, e-325, and on AIX, HP-UX and Solaris, e-324.
So in an instance document, a data of value 1.0e-310 from a type with minExclusive 0, is considered invalid on windows (since it is converted to 0 and therefore violates the minExclusive constraint), but valid on other Unix platforms (since it remains the original value).
The discussion above applies to data in xsd file as well.