You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/02/04 20:08:10 UTC
cvs commit: xml-xerces/c/doc faq-build.xml faq-parse.xml
tng 02/02/04 11:08:10
Modified: c/doc faq-build.xml faq-parse.xml
Log:
Add FAQ why the parser still try to locate the DTD even the validation is off.
Revision Changes Path
1.2 +1 -1 xml-xerces/c/doc/faq-build.xml
Index: faq-build.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/faq-build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- faq-build.xml 18 Jan 2002 16:30:50 -0000 1.1
+++ faq-build.xml 4 Feb 2002 19:08:10 -0000 1.2
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding = "iso-8859-1" standalone="no"?>
<!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?">
<q>Why do I get Internal Compiler Error when compiling &XercesCName; for a 64bit target with gcc?</q>
1.40 +25 -2 xml-xerces/c/doc/faq-parse.xml
Index: faq-parse.xml
===================================================================
RCS file: /home/cvs/xml-xerces/c/doc/faq-parse.xml,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -r1.39 -r1.40
--- faq-parse.xml 21 Jan 2002 14:19:36 -0000 1.39
+++ faq-parse.xml 4 Feb 2002 19:08:10 -0000 1.40
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding = "iso-8859-1" standalone="no"?>
<!DOCTYPE faqs SYSTEM "./dtd/faqs.dtd">
-<faqs title="Programming/Parsing with &XercesCName;">
+<faqs title="Programming/Parsing FAQs">
<faq title="Does &XercesCName; support Schema?">
@@ -490,7 +490,7 @@
extends the encoding support to over 100 different encodings that are allowed
by ICU. In particular, all the encodings registered with the
<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
additional encodings. The exact set will depend on the supplier of the parser
@@ -691,6 +691,29 @@
pointer is a generic void pointer, see
<jump href="program-sax2.html#SAX2Properties">SAX2 Programming Guide</jump> to learn
exactly what type of property value each property returns for replication.
+ </p>
+
+ </a>
+ </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>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org