You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ra...@locus.apache.org on 2000/06/16 22:25:52 UTC
cvs commit: xml-xerces/c/samples/SAXPrint SAXPrint.cpp
rahulj 00/06/16 13:25:49
Modified: c/samples/DOMCount DOMCount.cpp
c/samples/DOMPrint DOMPrint.cpp
c/samples/SAXCount SAXCount.cpp
c/samples/SAXPrint SAXPrint.cpp
Log:
Add the -v=always option to force validation checking. Need this
option for running the conformance tests.
Revision Changes Path
1.8 +6 -1 xml-xerces/c/samples/DOMCount/DOMCount.cpp
Index: DOMCount.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/DOMCount/DOMCount.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- DOMCount.cpp 2000/05/31 18:42:31 1.7
+++ DOMCount.cpp 2000/06/16 20:25:23 1.8
@@ -56,6 +56,10 @@
/*
* $Log: DOMCount.cpp,v $
+ * Revision 1.8 2000/06/16 20:25:23 rahulj
+ * Add the -v=always option to force validation checking. Need this
+ * option for running the conformance tests.
+ *
* Revision 1.7 2000/05/31 18:42:31 rahulj
* 'Auto' validation is the default processing mode.
*
@@ -114,7 +118,7 @@
"the DOM tree, and then prints the number of elements\n"
"found in the input XML file.\n\n"
"Options:\n"
- " -v=xxx Validation scheme [never | auto*]\n"
+ " -v=xxx Validation scheme [always | never | auto*]\n"
" -n Enable namespace processing. Defaults to off.\n\n"
" * = Default if not provided explicitly\n\n"
<< endl;
@@ -170,6 +174,8 @@
valScheme = DOMParser::Val_Never;
else if (!strcmp(parm, "auto"))
valScheme = DOMParser::Val_Auto;
+ else if (!strcmp(parm, "always"))
+ valScheme = DOMParser::Val_Always;
else
{
cerr << "Unknown -v= value: " << parm << endl;
1.16 +4 -2 xml-xerces/c/samples/DOMPrint/DOMPrint.cpp
Index: DOMPrint.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/DOMPrint/DOMPrint.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- DOMPrint.cpp 2000/05/31 23:58:27 1.15
+++ DOMPrint.cpp 2000/06/16 20:25:33 1.16
@@ -55,7 +55,7 @@
*/
/*
- * $Id: DOMPrint.cpp,v 1.15 2000/05/31 23:58:27 rahulj Exp $
+ * $Id: DOMPrint.cpp,v 1.16 2000/06/16 20:25:33 rahulj Exp $
*/
@@ -262,7 +262,7 @@
"Options:\n"
" -e Expand entity references. Default is no expansion.\n"
" -u=xxx Handle unrepresentable chars [fail | rep | ref*]\n"
- " -v=xxx Validation scheme [never | auto*]\n"
+ " -v=xxx Validation scheme [always | never | auto*]\n"
" -n Enable namespace processing. Default is off.\n"
" -x=XXX Use a particular encoding for output. Default is\n"
" the same encoding as the input XML file. UTF-8 if\n"
@@ -333,6 +333,8 @@
gValScheme = DOMParser::Val_Never;
else if (!strcmp(parm, "auto"))
gValScheme = DOMParser::Val_Auto;
+ else if (!strcmp(parm, "always"))
+ gValScheme = DOMParser::Val_Always;
else
{
cerr << "Unknown -v= value: " << parm << endl;
1.8 +6 -1 xml-xerces/c/samples/SAXCount/SAXCount.cpp
Index: SAXCount.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAXCount/SAXCount.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- SAXCount.cpp 2000/05/31 18:39:59 1.7
+++ SAXCount.cpp 2000/06/16 20:25:38 1.8
@@ -56,6 +56,10 @@
/*
* $Log: SAXCount.cpp,v $
+* Revision 1.8 2000/06/16 20:25:38 rahulj
+* Add the -v=always option to force validation checking. Need this
+* option for running the conformance tests.
+*
* Revision 1.7 2000/05/31 18:39:59 rahulj
* 'Auto' validation is the default processing mode.
*
@@ -105,7 +109,7 @@
cout << "\nUsage:\n"
" SAXCount [options] <XML file>\n\n"
"Options:\n"
- " -v=xxx Validation scheme [never | auto*]\n"
+ " -v=xxx Validation scheme [always | never | auto*]\n"
" -n Enable namespace processing. Defaults to off.\n\n"
"This program prints the number of elements, attributes,\n"
"white spaces and other non-white space characters in the "
@@ -169,6 +173,8 @@
valScheme = SAXParser::Val_Never;
else if (!strcmp(parm, "auto"))
valScheme = SAXParser::Val_Auto;
+ else if (!strcmp(parm, "always"))
+ valScheme = SAXParser::Val_Always;
else
{
cerr << "Unknown -v= value: " << parm << endl;
1.12 +6 -1 xml-xerces/c/samples/SAXPrint/SAXPrint.cpp
Index: SAXPrint.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAXPrint/SAXPrint.cpp,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SAXPrint.cpp 2000/05/31 18:36:26 1.11
+++ SAXPrint.cpp 2000/06/16 20:25:43 1.12
@@ -56,6 +56,10 @@
/*
* $Log: SAXPrint.cpp,v $
+ * Revision 1.12 2000/06/16 20:25:43 rahulj
+ * Add the -v=always option to force validation checking. Need this
+ * option for running the conformance tests.
+ *
* Revision 1.11 2000/05/31 18:36:26 rahulj
* Matched the command line options supported by DOMPrint.
*
@@ -149,7 +153,7 @@
"sensitive.\n\n"
"Options:\n"
" -u=xxx Handle unrepresentable chars [fail | rep | ref*]\n"
- " -v=xxx Validation scheme [never | auto*]\n"
+ " -v=xxx Validation scheme [always | never | auto*]\n"
" -n Enable namespace processing.\n"
" -x=XXX Use a particular encoding for output (LATIN1*).\n"
" -? Show this help\n\n"
@@ -212,6 +216,8 @@
valScheme = SAXParser::Val_Never;
else if (!strcmp(parm, "auto"))
valScheme = SAXParser::Val_Auto;
+ else if (!strcmp(parm, "always"))
+ valScheme = SAXParser::Val_Always;
else
{
cerr << "Unknown -v= value: " << parm << endl;