diff --git a/doc/program-deprecateddom.xml b/doc/program-deprecateddom.xml index b0ce7b089ef6edcc2c50977f13bb0ec1052c95e7..2e9f507bda1b17b42c0984b518a6ec6e1c09023e 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 5b38d94fb926a69e356c690d886ca8ff5c917f07..bc5a0d3821d2380fb9938a1d6b2e4a3238611d97 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 45ed04ac322da3f5c935276801780a228158e884..aaf3d82a7ce0f7847b544369e462e610d6a696df 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 5f8ca3c1b176ae55a8394cb43b54bc27a21c6ab8..32adafb9a867f4c4164ac77653e5b811ee53afb8 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,