You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@locus.apache.org on 2000/09/06 01:38:27 UTC
cvs commit: xml-xerces/c/src/parsers SAXParser.cpp
andyh 00/09/05 16:38:27
Modified: c/src/parsers SAXParser.cpp
Log:
Added advanced callback support for XMLDecl()
Revision Changes Path
1.14 +19 -5 xml-xerces/c/src/parsers/SAXParser.cpp
Index: SAXParser.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/parsers/SAXParser.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- SAXParser.cpp 2000/06/19 18:12:56 1.13
+++ SAXParser.cpp 2000/09/05 23:38:26 1.14
@@ -56,6 +56,9 @@
/*
* $Log: SAXParser.cpp,v $
+ * Revision 1.14 2000/09/05 23:38:26 andyh
+ * Added advanced callback support for XMLDecl()
+ *
* Revision 1.13 2000/06/19 18:12:56 rahulj
* Suppress the comments, characters, ignoreableWhitespaces before
* root element. Only allow the PI's to get through. Still need to come
@@ -549,12 +552,21 @@
}
-void SAXParser::XMLDecl(const XMLCh* const
- , const XMLCh* const
- , const XMLCh* const
- , const XMLCh* const)
+void SAXParser::XMLDecl( const XMLCh* const versionStr
+ , const XMLCh* const encodingStr
+ , const XMLCh* const standaloneStr
+ , const XMLCh* const actualEncodingStr
+ )
{
- // SAX has no way to report this event
+ //
+ // SAX has no way to report this. But, if there are any installed
+ // advanced handlers, then lets call them with this info.
+ //
+ for (unsigned int index = 0; index < fAdvDHCount; index++)
+ fAdvDHList[index]->XMLDecl( versionStr,
+ encodingStr,
+ standaloneStr,
+ actualEncodingStr );
}