AnyEvent::XMPP::Parser(3pm) | User Contributed Perl Documentation | AnyEvent::XMPP::Parser(3pm) |
AnyEvent::XMPP::Parser - Parser for XML streams (helper for AnyEvent::XMPP)
use AnyEvent::XMPP::Parser; ...
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.
$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.
$cmptag needs to come from the XML::Parser::Expat as it has some magic attached that stores the namespace.
Robin Redeker, "<elmex at ta-sa.org>", JID: "<elmex at jabber.org>"
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.
2022-12-06 | perl v5.36.0 |