You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/06/17 17:33:05 UTC
cvs commit: xml-xerces/c/samples/SAX2Count SAX2Count.cpp
tng 2002/06/17 08:33:05
Modified: c/samples/SAX2Count SAX2Count.cpp
Log:
Name Xerces features as XMLUni::fgXercesXXXX instead of XMLUni::fgSAX2XercesXXXX so that they can be shared with DOM parser.
Revision Changes Path
1.17 +7 -4 xml-xerces/c/samples/SAX2Count/SAX2Count.cpp
Index: SAX2Count.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/samples/SAX2Count/SAX2Count.cpp,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- SAX2Count.cpp 13 Feb 2002 16:11:06 -0000 1.16
+++ SAX2Count.cpp 17 Jun 2002 15:33:05 -0000 1.17
@@ -56,6 +56,9 @@
/*
* $Log$
+* Revision 1.17 2002/06/17 15:33:05 tng
+* Name Xerces features as XMLUni::fgXercesXXXX instead of XMLUni::fgSAX2XercesXXXX so that they can be shared with DOM parser.
+*
* Revision 1.16 2002/02/13 16:11:06 knoaman
* Update samples to use SAX2 features/properties constants from XMLUni.
*
@@ -260,14 +263,14 @@
//
SAX2XMLReader* parser = XMLReaderFactory::createXMLReader();
parser->setFeature(XMLUni::fgSAX2CoreNameSpaces, doNamespaces);
- parser->setFeature(XMLUni::fgSAX2XercesSchema, doSchema);
- parser->setFeature(XMLUni::fgSAX2XercesSchemaFullChecking, schemaFullChecking);
+ parser->setFeature(XMLUni::fgXercesSchema, doSchema);
+ parser->setFeature(XMLUni::fgXercesSchemaFullChecking, schemaFullChecking);
parser->setFeature(XMLUni::fgSAX2CoreNameSpacePrefixes, namespacePrefixes);
if (valScheme == SAX2XMLReader::Val_Auto)
{
parser->setFeature(XMLUni::fgSAX2CoreValidation, true);
- parser->setFeature(XMLUni::fgSAX2XercesDynamic, true);
+ parser->setFeature(XMLUni::fgXercesDynamic, true);
}
if (valScheme == SAX2XMLReader::Val_Never)
{
@@ -276,7 +279,7 @@
if (valScheme == SAX2XMLReader::Val_Always)
{
parser->setFeature(XMLUni::fgSAX2CoreValidation, true);
- parser->setFeature(XMLUni::fgSAX2XercesDynamic, false);
+ parser->setFeature(XMLUni::fgXercesDynamic, false);
}
//
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org