ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

For more information about the manual page format, see the manual page for manpages(5).



XML::LibXML::SAX::Builder(3)         User Contributed Perl Documentation        XML::LibXML::SAX::Builder(3)



NAME
       XML::LibXML::SAX::Builder - Building DOM trees from SAX events.

SYNOPSIS
         my $builder = XML::LibXML::SAX::Builder->new();

         my $gen = XML::Generator::DBI->new(Handler => $builder, dbh => $dbh);
         $gen->execute("SELECT * FROM Users");

         my $doc = $builder->result();

DESCRIPTION
       This is a SAX handler that generates a DOM tree from SAX events. Usage is as above. Input is accepted
       from any SAX1 or SAX2 event generator.

       Building DOM trees from SAX events is quite easy with XML::LibXML::SAX::Builder. The class is
       designed as a SAX2 final handler not as a filter!

       Since SAX is strictly stream oriented, you should not expect anything to return from a generator.
       Instead you have to ask the builder instance directly to get the document built.
       XML::LibXML::SAX::Builder's result() function holds the document generated from the last SAX stream.

AUTHORS
       Matt Sergeant, Christian Glahn, Petr Pajas,

VERSION
       1.60

COPYRIGHT
       2001-2006, AxKit.com Ltd; 2002-2006 Christian Glahn; 2006 Petr Pajas, All rights reserved.



perl v5.8.8                                      2006-08-26                     XML::LibXML::SAX::Builder(3)

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.