|
NAMERPC::XML::Parser - Interface for parsers created by RPC::XML::ParserFactorySYNOPSISThis class is not instantiated directly; see RPC::XML::ParserFactory.DESCRIPTIONThe RPC::XML::Parser class encapsulates the interface for the parsing process. It is an empty class that is used in conjuntion with the RPC::XML::ParserFactory class.All parser implementations that are intended to be returned by calls to RPC::XML::ParserFactory::new() should declare this as their parent class. SUBROUTINES/METHODSThis class provides empty implementations for the following methods. A parser implementation must provide definitions for both of these methods. If the versions from this class are triggered they will throw exceptions ("die").The descriptions below define the interface that implementations must adhere to.
The "base64*" parameters do not have to be implemented if the user has no plans to use the "to_file" method of the RPC::XML::base64 data-class. As a special-case, to preserve backwards compatibility with pre-0.69 versions of this package, new() has special behavior when specifically called for the package RPC::XML::Parser. When called for this package, the constructor quietly loads RPC::XML::ParserFactory and uses it to construct and return an instance of a parser based on XML::Parser.
The next two methods are only called on push-parser instances, and as such do not have to be implemented by the actual factory-compatible parser. It is enough if the non-blocking parser instance it returns from the no-argument call to parse() implements these:
parse_done() may also signal an error by throwing an exception. DIAGNOSTICSUnless otherwises specified, routines return the object reference itself upon a successful operation, and an error string (which is not a blessed reference) upon error.BUGSPlease report any bugs or feature requests to "bug-rpc-xml at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=RPC-XML>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.SUPPORT
LICENSE AND COPYRIGHTThis file and the code within are copyright (c) 2011 by Randy J. Ray.Copying and distribution are permitted under the terms of the Artistic License 2.0 (<http://www.opensource.org/licenses/artistic-license-2.0.php>) or the GNU LGPL 2.1 (<http://www.opensource.org/licenses/lgpl-2.1.php>). CREDITSThe XML-RPC standard is Copyright (c) 1998-2001, UserLand Software, Inc. See <http://www.xmlrpc.com> for more information about the XML-RPC specification.SEE ALSORPC::XML, RPC::XML::ParserFactory, RPC::XML::Parser::XMLParserAUTHORRandy J. Ray <rjray@blackperl.com>
Visit the GSP FreeBSD Man Page Interface. |