You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ca...@apache.org on 2006/05/08 20:16:08 UTC
svn commit: r405117 - in /xerces/c/trunk/doc: program-deprecateddom.xml
program-dom.xml program-sax.xml program-sax2.xml
Author: cargilld
Date: Mon May 8 11:16:05 2006
New Revision: 405117
URL: http://svn.apache.org/viewcvs?rev=405117&view=rev
Log:
Documentation update. Default validation is never not auto.
Modified:
xerces/c/trunk/doc/program-deprecateddom.xml
xerces/c/trunk/doc/program-dom.xml
xerces/c/trunk/doc/program-sax.xml
xerces/c/trunk/doc/program-sax2.xml
Modified: xerces/c/trunk/doc/program-deprecateddom.xml
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/doc/program-deprecateddom.xml?rev=405117&r1=405116&r2=405117&view=diff
==============================================================================
--- xerces/c/trunk/doc/program-deprecateddom.xml (original)
+++ xerces/c/trunk/doc/program-deprecateddom.xml Mon May 8 11:16:05 2006
@@ -312,7 +312,7 @@
char* xmlFile = "x1.xml";
DOMParser* parser = new DOMParser();
- parser->setValidationScheme(DOMParser::Val_Always); // optional.
+ parser->setValidationScheme(DOMParser::Val_Always);
parser->setDoNamespaces(true); // optional
ErrorHandler* errHandler = (ErrorHandler*) new HandlerBase();
@@ -439,7 +439,7 @@
<tr><th><em>Val_Auto:</em></th><td> The parser will report validation errors only if a grammar is specified.</td></tr>
<tr><th><em>Val_Always:</em></th><td> The parser will always report validation errors. </td></tr>
<tr><th><em>Val_Never:</em></th><td> Do not report validation errors. </td></tr>
- <tr><th><em>default:</em></th><td> Val_Auto </td></tr>
+ <tr><th><em>default:</em></th><td> Val_Never </td></tr>
<tr><th><em>note:</em></th><td> If set to Val_Always, the document must
specify a grammar. If this feature is set to Val_Never and document specifies a grammar,
that grammar might be parsed but no validation of the document contents will be
Modified: xerces/c/trunk/doc/program-dom.xml
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/doc/program-dom.xml?rev=405117&r1=405116&r2=405117&view=diff
==============================================================================
--- xerces/c/trunk/doc/program-dom.xml (original)
+++ xerces/c/trunk/doc/program-dom.xml Mon May 8 11:16:05 2006
@@ -309,7 +309,7 @@
}
XercesDOMParser* parser = new XercesDOMParser();
- parser->setValidationScheme(XercesDOMParser::Val_Always); // optional.
+ parser->setValidationScheme(XercesDOMParser::Val_Always);
parser->setDoNamespaces(true); // optional
ErrorHandler* errHandler = (ErrorHandler*) new HandlerBase();
@@ -437,7 +437,7 @@
<tr><th><em>Val_Auto:</em></th><td> The parser will report validation errors only if a grammar is specified.</td></tr>
<tr><th><em>Val_Always:</em></th><td> The parser will always report validation errors. </td></tr>
<tr><th><em>Val_Never:</em></th><td> Do not report validation errors. </td></tr>
- <tr><th><em>default:</em></th><td> Val_Auto </td></tr>
+ <tr><th><em>default:</em></th><td> Val_Never </td></tr>
<tr><th><em>note:</em></th><td> If set to Val_Always, the document must
specify a grammar. If this feature is set to Val_Never and document specifies a grammar,
that grammar might be parsed but no validation of the document contents will be
Modified: xerces/c/trunk/doc/program-sax.xml
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/doc/program-sax.xml?rev=405117&r1=405116&r2=405117&view=diff
==============================================================================
--- xerces/c/trunk/doc/program-sax.xml (original)
+++ xerces/c/trunk/doc/program-sax.xml Mon May 8 11:16:05 2006
@@ -129,7 +129,7 @@
char* xmlFile = "x1.xml";
SAXParser* parser = new SAXParser();
- parser->setDoValidation(true); // optional.
+ parser->setDoValidation(true);
parser->setDoNamespaces(true); // optional
DocumentHandler* docHandler = new HandlerBase();
@@ -214,7 +214,7 @@
<tr><th><em>Val_Auto:</em></th><td> The parser will report validation errors only if a grammar is specified. </td></tr>
<tr><th><em>Val_Always:</em></th><td> The parser will always report validation errors. </td></tr>
<tr><th><em>Val_Never:</em></th><td> Do not report validation errors. </td></tr>
- <tr><th><em>default:</em></th><td> Val_Auto </td></tr>
+ <tr><th><em>default:</em></th><td> Val_Never </td></tr>
<tr><th><em>note:</em></th><td> If set to Val_Always, the document must
specify a grammar. If this feature is set to Val_Never and document specifies a grammar,
that grammar might be parsed but no validation of the document contents will be
Modified: xerces/c/trunk/doc/program-sax2.xml
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/doc/program-sax2.xml?rev=405117&r1=405116&r2=405117&view=diff
==============================================================================
--- xerces/c/trunk/doc/program-sax2.xml (original)
+++ xerces/c/trunk/doc/program-sax2.xml Mon May 8 11:16:05 2006
@@ -138,7 +138,7 @@
char* xmlFile = "x1.xml";
SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
- parser->setFeature(XMLUni::fgSAX2CoreValidation, true); // optional
+ parser->setFeature(XMLUni::fgSAX2CoreValidation, true);
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, true); // optional
DefaultHandler* defaultHandler = new DefaultHandler();
@@ -217,7 +217,7 @@
<tr><th colspan="2"><em>http://xml.org/sax/features/validation</em></th></tr>
<tr><th><em>true:</em></th><td> Report all validation errors. </td></tr>
<tr><th><em>false:</em></th><td> Do not report validation errors. </td></tr>
- <tr><th><em>default:</em></th><td> true </td></tr>
+ <tr><th><em>default:</em></th><td> false </td></tr>
<tr><th><em>XMLUni Predefined Constant:</em></th><td> fgSAX2CoreValidation </td></tr>
<tr><th><em>note:</em></th><td> If this feature is set to true, the document must
specify a grammar. If this feature is set to false and document specifies a grammar,
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org