Unix/Linux Go Back    

CentOS 7.0 - man page for xml::libxml::sax::builder (centos section 3)

Linux & Unix Commands - Search Man Pages
Man Page or Keyword Search:   man
Select Man Page Set:       apropos Keyword Search (sections above)

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

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

	 use XML::LibXML::SAX::Builder;
	 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();

       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.

       Matt Sergeant, Christian Glahn, Petr Pajas


       2001-2007, AxKit.com Ltd.

       2002-2006, Christian Glahn.

       2006-2009, Petr Pajas.

perl v5.16.3				    2013-05-13		     XML::LibXML::SAX::Builder(3)
Unix & Linux Commands & Man Pages : ©2000 - 2018 Unix and Linux Forums

All times are GMT -4. The time now is 11:30 AM.