XML::LibXML::SAX::Generator - Generate SAX events from a LibXML tree
my $handler = MySAXHandler->new(); my $generator = XML::LibXML::SAX::Generator->new(Handler => $handler); my $dom = XML::LibXML->new->parse_file("foo.xml"); $generator->generate($dom);
User Contributed Perl Documentation XML::LibXML::SAX::Generator(3) NAME XML::LibXML::SAX::Generator - Generate SAX events from a LibXML tree SYNOPSIS my $handler = MySAXHandler->new(); my $generator = XML::LibXML::SAX::Generator->new(Handler => $handler); my $dom = XML::LibXML->new->parse_file("foo.xml"); $generator->generate($dom); DESCRIPTION THIS CLASS IS DEPRECATED! Use XML::LibXML::SAX::Parser instead! This helper class allows you to generate SAX events from any XML::LibXML node, and all it's sub-nodes. This basically gives you interop from XML::LibXML to other modules that may implement SAX. It uses SAX2 style, but should be compatible with anything SAX1, by use of stringification overloading. There is nothing to really know about, beyond the synopsis above, and a general knowledge of how to use SAX, which is beyond the scope here. ATTRIBUTES See attributes(7) for descriptions of the following attributes: +---------------+-------------------------------+ |ATTRIBUTE TYPE | ATTRIBUTE VALUE | +---------------+-------------------------------+ |Availability | library/perl-5/xml-libxml-532 | +---------------+-------------------------------+ |Stability | Volatile | +---------------+-------------------------------+ NOTES Source code for open source software components in Oracle Solaris can be found at https://www.oracle.com/downloads/opensource/solaris-source- code-downloads.html. This software was built from source available at https://github.com/oracle/solaris-userland. The original community source was downloaded from http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/XML- LibXML-2.0201.tar.gz. Further information about this software can be found on the open source community website at http://search.cpan.org/~shlomif/XML-LibXML/. perl v5.32.0 2019-05-25 XML::LibXML::SAX::Generator(3)