You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

109 lines
4.7 KiB

  1. <?xml version="1.0" encoding = "iso-8859-1" standalone="no"?>
  2. <!--
  3. * Licensed to the Apache Software Foundation (ASF) under one or more
  4. * contributor license agreements. See the NOTICE file distributed with
  5. * this work for additional information regarding copyright ownership.
  6. * The ASF licenses this file to You under the Apache License, Version 2.0
  7. * (the "License"); you may not use this file except in compliance with
  8. * the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. -->
  18. <!DOCTYPE faqs SYSTEM "sbk:/style/dtd/faqs.dtd">
  19. <faqs title="Building / Running &XercesCName;">
  20. <faq title="Why do I get compilation error saying DOMDocument was declared twice using
  21. Microsoft Visual C++?">
  22. <q>Why do I get compilation error saying DOMDocument was declared twice using
  23. Microsoft Visual C++?</q>
  24. <a>
  25. <p>Your application somehow has picked up the Microsoft SDK header <code>Msxml.h</code>
  26. which has its own typedef of <code>DOMDocument</code>. This confuses
  27. with the &XercesCName; &XercesC3Version; <code>&XercesC3Namespace;::DOMDocument</code>
  28. and thus lead to the compilation errors.</p>
  29. <p>Qualifier the use of DOMDocument in your application explicitly e.g.,
  30. <br/><br/><code>xercesc::DOMDocument* doc;</code><br/><br/>
  31. will eliminate these compilation problems. Alternatively, you
  32. may want to get rid of the <code>Msxml.h</code> header inclusion.
  33. </p>
  34. </a>
  35. </faq>
  36. <faq title="Why does my application have unresolved linking errors?">
  37. <q>Why does my application give unresolved linking errors?</q>
  38. <a>
  39. <p>Please check the following:</p>
  40. <ol>
  41. <li>Verify that you have specified the appropriate option and library path in the linker
  42. command line</li>
  43. <li>If you're using the binary build of &XercesCName;, make sure that the CPU architecture, OS,
  44. and compiler are
  45. the same as the ones used to build the application. Different OS and
  46. compiler versions might cause unresolved linking problems or compilation
  47. errors. If the versions are different, rebuild the &XercesCName; library on
  48. your system before building your application.</li>
  49. <li>If you are using Microsoft Visual Studio 2003 (7.1), 2005 (8.0), or 2008 (9.0),
  50. check that the
  51. "Treat wchar_t as a built-in type" option has been set to the same value as
  52. used to build &XercesCName;. The binary distribution for Visual Studio 7.1 is
  53. built with this option turned off. The binary distributions for Visual Studio 8.0
  54. and 9.0 are built with this option turned on.</li>
  55. </ol>
  56. </a>
  57. </faq>
  58. <faq title="I cannot run the sample applications. What is wrong?">
  59. <q>I cannot run the sample applications. What is wrong?</q>
  60. <a>
  61. <p>In order to run an application built using &XercesCProjectName; you must
  62. set up your path and library search path properly. For more information
  63. refer to the <link idref="install-&XercesC3Series;">Installation instructions</link>.
  64. </p>
  65. </a>
  66. </faq>
  67. <faq title="Why my document is valid on some platforms while invalid on others">
  68. <q>Why my document is valid on some platform while invalid on others?</q>
  69. <a>
  70. <p>The parser relies on the system call, strtod(), to parse a string representation
  71. of a double/float data. In the case of no invalid characters found, the strtod()
  72. returns a double/float value if it is representable on that platform, or raises
  73. ERANGE to indicate either underflow or underflow occurs. And the parser assigns
  74. zero to the said data if underflow is found.
  75. </p>
  76. <p>The threshold, where the strtod() decides if an underflow occurs, varies on
  77. platforms. On Windows, it is roughly the order of e-308, on Linux, e-325, and
  78. on AIX, HP-UX and Solaris, e-324.
  79. </p>
  80. <p>So in an instance document, a data of value 1.0e-310 from a type with minExclusive 0,
  81. is considered invalid on windows (since it is converted to 0 and therefore violates
  82. the minExclusive constraint), but valid on other Unix platforms (since it remains
  83. the original value).
  84. </p>
  85. <p>The discussion above applies to data in xsd file as well.
  86. </p>
  87. </a>
  88. </faq>
  89. </faqs>