AnyEvent::XMPP::Parser man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

AnyEvent::XMPP::ParserUser Contributed Perl DocumentaAnyEvent::XMPP::Parser(3)

NAME
       AnyEvent::XMPP::Parser - Parser for XML streams (helper for
       AnyEvent::XMPP)

SYNOPSIS
	  use AnyEvent::XMPP::Parser;
	  ...

DESCRIPTION
       This is a XMPP XML parser helper class, which helps me to cope with the
       XMPP XML.

       See also AnyEvent::XMPP::Writer for a discussion of the issues with XML
       in XMPP.

METHODS
       new This creates a new AnyEvent::XMPP::Parser and calls "init".

       set_stanza_cb ($cb)
	   Sets the 'XML stanza' callback.

	   $cb must be a code reference. The first argument to the callback
	   will be this AnyEvent::XMPP::Parser instance and the second will be
	   the stanzas root AnyEvent::XMPP::Node as first argument.

	   If the second argument is undefined the end of the stream has been
	   found.

       set_error_cb ($cb)
	   This sets the error callback that will be called when the parser
	   encounters an syntax error. The first argument is the exception and
	   the second is the data which caused the error.

       set_stream_cb ($cb)
	   This method sets the stream tag callback. It is called when the
	   <stream> tag from the server has been encountered.  The first
	   argument to the callback is the AnyEvent::XMPP::Node of the opening
	   stream tag.

       init
	   This methods (re)initializes the parser.

       cleanup
	   This methods removes all handlers. Use it to avoid circular
	   references.

       nseq ($namespace, $tagname, $cmptag)
	   This method checks whether the $cmptag matches the $tagname in the
	   $namespace.

	   $cmptag needs to come from the XML::Parser::Expat as it has some
	   magic attached that stores the namespace.

       feed ($data)
	   This method feeds a chunk of unparsed data to the parser.

AUTHOR
       Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"

COPYRIGHT & LICENSE
       Copyright 2007, 2008 Robin Redeker, all rights reserved.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.14.1			  2009-08-14	     AnyEvent::XMPP::Parser(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net