Skip to content
Snippets Groups Projects
Commit 60296cbe authored by Tinny Ng's avatar Tinny Ng
Browse files

Add FAQ why the parser still try to locate the DTD even the validation is off.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173453 13f79535-47bb-0310-9956-ffa450edef68
parent f070a818
No related branches found
No related tags found
No related merge requests found
......@@ -151,13 +151,17 @@ catch (const XMLException& toCatch) {
<faq title="Why does my application crash or hang if XMLPlatformUtils::Initialize()/Terminate() pair is called more than once?">
<q>Why does my application crash or hang if XMLPlatformUtils::Initialize()/Terminate() pair more than once?</q>
<q>Why does my application crash or hang if XMLPlatformUtils::Initialize()/Terminate() pair is called more than once?</q>
<a>
<p>Please make sure you are using &XercesCName; Version 1.5.2 or up.
</p>
<p>&XercesCName; Version 1.5.1 or below does not allow XMLPlatformUtils::Initialize()/Terminate()
pair to be called more than once.
</p>
</a>
</faq>
......@@ -172,8 +176,8 @@ catch (const XMLException&amp; toCatch) {
destructed when going out of scope) should be called after XMLPlatformUtils::Terminate().
</p>
<p>
Consider the following code snippets which is incorrect (for illustration simplicity the
following sample code is not coded in try/catch clause):
For example consider the following code snippets which is incorrect
(for illustration simplicity the following sample code is not coded in try/catch clause):
</p>
<source>
......@@ -704,7 +708,7 @@ catch (const XMLException&amp; toCatch) {
<a>
<p>If the DTD is referenced, the parser will try to read it, because DTDs can
<p>When DTD is referenced, the parser will try to read it, because DTDs can
provide a lot more information than just validation. It defines entities and
notations, external uparsed entities, default attributes, character
entities, etc... So it will always try to read it if present, even if
......@@ -712,7 +716,7 @@ catch (const XMLException&amp; toCatch) {
</p>
<p>To ignore the DTD, the only way to get around this is to install an EntityResolver
(see the Redirect sample for an example of how this is done.), and reset the
(see the Redirect sample for an example of how this is done), and reset the
DTD file to "".
</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment