rahulj 99/11/11 18:14:11
Modified: c/samples/DOMPrint DOMPrint.cpp
Log:
It now validates when the -v option is specified.
Revision Changes Path
1.2 +4 -0 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.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- DOMPrint.cpp 1999/11/09 01:09:51 1.1
+++ DOMPrint.cpp 1999/11/12 02:14:05 1.2
@@ -56,9 +56,12 @@
/**
* $Log: DOMPrint.cpp,v $
- * Revision 1.1 1999/11/09 01:09:51 twl
- * Initial revision
+ * Revision 1.2 1999/11/12 02:14:05 rahulj
+ * It now validates when the -v option is specified.
*
+ * Revision 1.1.1.1 1999/11/09 01:09:51 twl
+ * Initial checkin
+ *
* Revision 1.7 1999/11/08 20:43:35 rahul
* Swat for adding in Product name and CVS comment log variable.
*
@@ -199,6 +202,7 @@
// discovers errors during the course of parsing the XML document.
//
DOMParser parser;
+ parser.setDoValidation(doValidation);
ErrorHandler *errReporter = new DOMTreeErrorReporter();
parser.setErrorHandler(errReporter);