You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ja...@apache.org on 2001/06/14 08:03:37 UTC
cvs commit: xml-xerces/perl ChangeLog Changes README TODO
jasons 01/06/13 23:03:37
Modified: perl ChangeLog Changes README TODO
Log:
usual
Revision Changes Path
1.17 +63 -0 xml-xerces/perl/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /home/cvs/xml-xerces/perl/ChangeLog,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- ChangeLog 2001/05/05 23:56:23 1.16
+++ ChangeLog 2001/06/14 06:03:36 1.17
@@ -1,3 +1,66 @@
+2001-06-13 Jason E. Stewart <ja...@openinformatics.com>
+
+ * t/SAXParser.t (Repository):
+ Now uses subclass of PerlDocumentHandler
+
+ * t/DOMParser.t (Repository):
+ New test to ensure that a fatal error is really fatal
+
+ * t/SAXCount.t (Repository):
+ * t/DOMPrint.t (Repository):
+ * t/DOMCount.t (Repository):
+ needed to close filehandle to flush buffer before calling external
+ method for Perl prior to 5.6
+
+ * samples/SAXCount.pl (Repository):
+ Added blib
+
+ * samples/SAX2Count.pl (Repository):
+ Now uses creates subclass of PerlContentHandler
+ comment blib out
+
+ * Xerces_headers/sax/AttributeList.hpp (Repository):
+ Made all methods available to Perl
+
+ * Handler/PerlErrorCallbackHandler.swig.hpp (Repository):
+ * Handler/PerlDocumentCallbackHandler.swig.hpp (Repository):
+ * Handler/PerlContentCallbackHandler.swig.hpp (Repository):
+ removed destructor
+ removed all methods not-accessible to Perl
+
+ * Makefile.PL (Repository):
+ New version (1.4.1)
+
+ * Xerces.i (Repository):
+ Needed iostream.h
+ Added XMLException and PerlExceptionHandler
+
+ * postModule.pl (Repository):
+ Added to_hash() for AttributeList and DOM_Entity
+ Added code in NamedNodeMap::to_hash() to handle DOM_Entity's
+
+ * postSource.pl (Repository):
+ Changed the temporary file code to use $$
+ Added fix for PerlExceptionHandler::setExceptionHandler
+ All new() methods for InputSource's now catch exceptions
+ Need to do two-phase parse to wipe out first occurrence of
+ SWIG_TypeCheck()
+
+ * t/DOM_Entity.t (Message):
+ test for retrieving entities from DTD
+
+ * t/SAX2Count.t (Message):
+ test for SAX2Count.pl
+
+ * t/XMLException.t (Message):
+ Test for exception handler
+
+ * Handler/PerlExceptionHandler.hpp (Repository):
+ Perl class for handling XMLException's
+
+ * Xerces_headers/util/XMLException.hpp (Repository):
+ Added XMLException
+
2001-05-05 Jason E. Stewart <ja...@openinformatics.com>
* postModule.pl (Repository):
1.8 +18 -1 xml-xerces/perl/Changes
Index: Changes
===================================================================
RCS file: /home/cvs/xml-xerces/perl/Changes,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- Changes 2001/05/05 23:43:54 1.7
+++ Changes 2001/06/14 06:03:36 1.8
@@ -1,9 +1,26 @@
Revision history for Perl extension Genex.
+1.4.1 Wed Jun 13 23:25:51 MDT 2001
+ - Inheritance of all Xerces classes now works! For example, it
+ is possible to subclass any of the DOM_Node classes with
+ your own Perl-based ones without throwing SWIG runtime type
+ checking errors.
+ - test scripts now use PerlContentHandler and
+ PerlDocumentHandler classes for SAX 1.0 and 2.0
+ - Fixed bugs in test scripts. In Perl prior to 5.6 buffered IO
+ was handled differently, and file handles need to be closed
+ to ensure a flush of the data. (thanks to
+ "Matthew D. Langston" <la...@SLAC.Stanford.EDU>, and
+ "Benjamin Low" <b_...@yahoo.com.au>).
+ - XMLException's are now supported via the
+ PerlExceptionHandler class. These exceptions are thrown
+ outside of parsing and are not handled by the standard
+ ErrorHandler mechanism.
+
1.4.0 Mon Apr 16 23:04:48 MST 2001
- first support for Xerces-C 1.4
- Preliminary support for SAX 2.0. Including new
- perlDocumentHandler and perlContentHandler classes.
+ PerlDocumentHandler and PerlContentHandler classes.
- More of XMLPlatformUtils exposed
1.3.5 Mon Apr 16 09:18:14 MST 2001
1.11 +22 -6 xml-xerces/perl/README
Index: README
===================================================================
RCS file: /home/cvs/xml-xerces/perl/README,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -r1.10 -r1.11
--- README 2001/05/05 23:34:53 1.10
+++ README 2001/06/14 06:03:36 1.11
@@ -1,6 +1,6 @@
Xerces.pm: The Perl API to the Apache Xerces XML parser
- $Id: README,v 1.10 2001/05/05 23:34:53 jasons Exp $
+ $Id: README,v 1.11 2001/06/14 06:03:36 jasons Exp $
LEGAL HOOP JUMPING:
===================
@@ -174,6 +174,8 @@
* lists (DOM_NodeList and perl list)
* hashes (DOM_NamedNodeMap and perl hash)
* DOMParse.pm (for serializing a DOM tree)
+* implementing Perl handlers for C++ event callbacks
+* handling non-parse exceptions (XMLException's)
Handling of DOMString's and XMLCh's
----------------------------------
@@ -239,9 +241,9 @@
Implementing {Document,Content,Error}Handlers from Perl
---------------------------------------------------------
-Thanks to Duncan Cameron, Xerces.pm now has a handler API that matches
-the currently used semantics of other Perl XML API's. There are three
-classes available for application writers:
+Thanks to suggestions from Duncan Cameron, Xerces.pm now has a handler
+API that matches the currently used semantics of other Perl XML
+API's. There are three classes available for application writers:
* PerlErrorHandler (SAX 1/2 and DOM 1)
* PerlDocumentHandler (SAX 1)
* PerlContentHandler (SAX 2)
@@ -259,6 +261,20 @@
my $dom = new XML::Xerces::DOMParser;
$dom->setErrorHandler(MyErrorHandler->new());
+Handling non-parse exceptions (XMLExceptions)
+---------------------------------------------
+
+Some errors occur before parsing (e.g. creating InputSource's). During
+these occassions the parser cannot catch the error using its
+ErrorHandler. Xerces.pm provides a way for catching these errors using
+the PerlExceptionHandler::setExceptionHandler() method. There is a
+default method that prints out an error message and calls die(), but
+if more is needed, see t/XMLException.t for details on how to roll
+your own handler.
+
+More examples
+-------------
+
See the applications in samples/ for more details of how to create
perl event handlers.
@@ -266,7 +282,7 @@
====
Please send the output of 'perl -V' and a description of your problem
-to xerces-p-dev@xml-apache.org. Including a *minimal* example script,
+to xerces-p-dev@xml.apache.org. Including a *minimal* example script,
xml file, and/or dtd is helpful. The more time you spend making those
files minimal the more likely we will be able to help solve your
problem.
@@ -279,6 +295,6 @@
Jason Stewart: SAX 1 and 2, Xerces 1.4, Cordination and testing
This list is incomplete. If you feel you were left out please send
-a note to the list (xerces-p-dev@xml-apache.org).
+a note to the list (xerces-p-dev@xml.apache.org).
1.5 +26 -4 xml-xerces/perl/TODO
Index: TODO
===================================================================
RCS file: /home/cvs/xml-xerces/perl/TODO,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- TODO 2001/04/16 18:12:04 1.4
+++ TODO 2001/06/14 06:03:36 1.5
@@ -22,7 +22,7 @@
* NetBSD (works: Emanuel Dreyfus <p9...@criens.u-psud.fr>)
* FreeBSD
* OpenBSD
-- Solaris (works: Solaris 8)
+- Solaris (works: Solaris 8 + cc; Solaris 5.6 + gcc)
- HP-UX
- AIX
- Mac
@@ -52,11 +52,33 @@
Internals:
==========
+Tue May 29 11:54:15 MDT 2001
+* add exception handling to Xerces.C to handle parse exceptions
+
+Mon May 28 20:24:51 MDT 2001
+* AttributeList needs to get its methods
+* post-source needs to handle the new SWIG_CheckType()
+* add polymorphic get{Name,Value,Type} to AttributeList
+
+Sat May 12 21:43:36 MDT 2001
+* setAttribute('foo'=>undef) causes segfault
+
+Sat May 5 18:28:19 MDT 2001
+* Find all overloaded methods that aren't being supported
+* add the rest of the handler classes:
+ - EntityResolver
+ - DTDHandler
+ - HandlerBase
+ - DefaultHandler
+ - LexicalHandler
+FIXED => * add test for SAX2Count.pl
+FIXED => * update SAX2Count.pl to new handler API
+
Sun Apr 15 23:38:26 MST 2001
* expand XMLReaderFactory::createXMLReader to support (classname)
-* add the rest of the DefaultHandler interface to perlDefaultHandler
-* rename perlDocumentHandler to perlHandlerBase
-* split perlErrorHandler.hpp into .cpp
+FIXED => * add the rest of the DefaultHandler interface to perlDefaultHandler
+FIXED => * rename perlDocumentHandler to perlHandlerBase
+FIXED => * split perlErrorHandler.hpp into .cpp
Sat Apr 14 17:30:46 MST 2001
* expend contrustor for XMLURL to support XMLURL(baseURL,relativeURL)
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org