Skip to content
Snippets Groups Projects
Commit f070a818 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@173452 13f79535-47bb-0310-9956-ffa450edef68
parent c38a57e7
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding = "iso-8859-1" standalone="no"?> <?xml version="1.0" encoding = "iso-8859-1" standalone="no"?>
<!DOCTYPE faqs SYSTEM "./dtd/faqs.dtd"> <!DOCTYPE faqs SYSTEM "./dtd/faqs.dtd">
<faqs title="Building / Running with &XercesCName;"> <faqs title="Building / Running FAQs">
<faq title="Why do I get Internal Compiler Error when compiling &XercesCName; for a 64bit target with gcc?"> <faq title="Why do I get Internal Compiler Error when compiling &XercesCName; for a 64bit target with gcc?">
<q>Why do I get Internal Compiler Error when compiling &XercesCName; for a 64bit target with gcc?</q> <q>Why do I get Internal Compiler Error when compiling &XercesCName; for a 64bit target with gcc?</q>
......
<?xml version="1.0" encoding = "iso-8859-1" standalone="no"?> <?xml version="1.0" encoding = "iso-8859-1" standalone="no"?>
<!DOCTYPE faqs SYSTEM "./dtd/faqs.dtd"> <!DOCTYPE faqs SYSTEM "./dtd/faqs.dtd">
<faqs title="Programming/Parsing with &XercesCName;"> <faqs title="Programming/Parsing FAQs">
<faq title="Does &XercesCName; support Schema?"> <faq title="Does &XercesCName; support Schema?">
...@@ -490,7 +490,7 @@ catch (const XMLException&amp; toCatch) { ...@@ -490,7 +490,7 @@ catch (const XMLException&amp; toCatch) {
extends the encoding support to over 100 different encodings that are allowed extends the encoding support to over 100 different encodings that are allowed
by ICU. In particular, all the encodings registered with the by ICU. In particular, all the encodings registered with the
<jump href="http://www.iana.org/assignments/character-sets"> <jump href="http://www.iana.org/assignments/character-sets">
Internet Assigned Numbers Authority (IANA) </jump> are suppored in XML4C.</p> Internet Assigned Numbers Authority (IANA) </jump> are supported in XML4C.</p>
<p>Some implementations or ports of Xerces-C provide support for <p>Some implementations or ports of Xerces-C provide support for
additional encodings. The exact set will depend on the supplier of the parser additional encodings. The exact set will depend on the supplier of the parser
...@@ -696,5 +696,28 @@ catch (const XMLException&amp; toCatch) { ...@@ -696,5 +696,28 @@ catch (const XMLException&amp; toCatch) {
</a> </a>
</faq> </faq>
<faq title="Why does the parser still try to locate the DTD even validation is turned off
and how to ignore external DTD reference?">
<q>Why does the parser still try to locate the DTD even validation is turned off
and how to ignore external DTD reference?</q>
<a>
<p>If the 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
validation is turned off.
</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
DTD file to "".
</p>
</a>
</faq>
</faqs> </faqs>
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