GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
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

2.0207

2001-2007, AxKit.com Ltd.

2002-2006, Christian Glahn.

2006-2009, Petr Pajas.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2021-04-17 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.