From 9de9e5f34ab357d2e193da1d8164c3f34404594d Mon Sep 17 00:00:00 2001 From: David Abram Cargill <cargilld@apache.org> Date: Mon, 8 May 2006 18:16:05 +0000 Subject: [PATCH] Documentation update. Default validation is never not auto. git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@405117 13f79535-47bb-0310-9956-ffa450edef68 --- doc/program-deprecateddom.xml | 4 ++-- doc/program-dom.xml | 4 ++-- doc/program-sax.xml | 4 ++-- doc/program-sax2.xml | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/program-deprecateddom.xml b/doc/program-deprecateddom.xml index b0ce7b089..2e9f507bd 100644 --- a/doc/program-deprecateddom.xml +++ b/doc/program-deprecateddom.xml @@ -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 diff --git a/doc/program-dom.xml b/doc/program-dom.xml index 5b38d94fb..bc5a0d382 100644 --- a/doc/program-dom.xml +++ b/doc/program-dom.xml @@ -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 diff --git a/doc/program-sax.xml b/doc/program-sax.xml index 45ed04ac3..aaf3d82a7 100644 --- a/doc/program-sax.xml +++ b/doc/program-sax.xml @@ -129,7 +129,7 @@ void MySAXHandler::fatalError(const SAXParseException& exception) 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 @@ void MySAXHandler::fatalError(const SAXParseException& exception) <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 diff --git a/doc/program-sax2.xml b/doc/program-sax2.xml index 5f8ca3c1b..32adafb9a 100644 --- a/doc/program-sax2.xml +++ b/doc/program-sax2.xml @@ -138,7 +138,7 @@ void MySAX2Handler::fatalError(const SAXParseException& exception) 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 @@ void MySAX2Handler::fatalError(const SAXParseException& exception) <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, -- GitLab