XML::Generator::PerlData 0.89
Sponsored Links
XML::Generator::PerlData 0.89 Ranking & Summary
File size:
0.013 MB
Platform:
Any Platform
License:
GPL (GNU General Public License)
Price:
Downloads:
1137
Date added:
2006-09-12
Publisher:
Kip Hampton
XML::Generator::PerlData 0.89 description
XML::Generator::PerlData is a Perl extension for generating SAX2 events from nested Perl data structures.
SYNOPSIS
use XML::Generator::PerlData;
use SomeSAX2HandlerOrFilter;
## Simple style ##
# get a deeply nested Perl data structure...
my $hash_ref = $obj->getScaryNestedDataStructure();
# create an instance of a handler class to forward events to...
my $handler = SomeSAX2HandlerOrFilter->new();
# create an instance of the PerlData driver...
my $driver = XML::Generator::PerlData->new( Handler => $handler );
# generate XML from the data structure...
$driver->parse( $hash_ref );
## Or, Stream style ##
use XML::Generator::PerlData;
use SomeSAX2HandlerOrFilter;
# create an instance of a handler class to forward events to...
my $handler = SomeSAX2HandlerOrFilter->new();
# create an instance of the PerlData driver...
my $driver = XML::Generator::PerlData->new( Handler => $handler );
# start the event stream...
$driver->parse_start();
# pass the data through in chunks
# (from a database handle here)
while ( my $array_ref = $dbd_sth->fetchrow_arrayref ) {
$driver->parse_chunk( $array_ref );
}
# end the event stream...
$driver->parse_end();
and youre done...
XML::Generator::PerlData provides a simple way to generate SAX2 events from nested Perl data structures, while providing finer-grained control over the resulting document streams.
Processing comes in two flavors: Simple Style and Stream Style:
In a nutshell, simple style is best used for those cases where you have a a single Perl data structure that you want to convert to XML as quickly and painlessly as possible. Stream style is more useful for cases where you are receiving chunks of data (like from a DBI handle) and you want to process those chunks as they appear. See PROCESSING METHODS for more info about how each style works.
SYNOPSIS
use XML::Generator::PerlData;
use SomeSAX2HandlerOrFilter;
## Simple style ##
# get a deeply nested Perl data structure...
my $hash_ref = $obj->getScaryNestedDataStructure();
# create an instance of a handler class to forward events to...
my $handler = SomeSAX2HandlerOrFilter->new();
# create an instance of the PerlData driver...
my $driver = XML::Generator::PerlData->new( Handler => $handler );
# generate XML from the data structure...
$driver->parse( $hash_ref );
## Or, Stream style ##
use XML::Generator::PerlData;
use SomeSAX2HandlerOrFilter;
# create an instance of a handler class to forward events to...
my $handler = SomeSAX2HandlerOrFilter->new();
# create an instance of the PerlData driver...
my $driver = XML::Generator::PerlData->new( Handler => $handler );
# start the event stream...
$driver->parse_start();
# pass the data through in chunks
# (from a database handle here)
while ( my $array_ref = $dbd_sth->fetchrow_arrayref ) {
$driver->parse_chunk( $array_ref );
}
# end the event stream...
$driver->parse_end();
and youre done...
XML::Generator::PerlData provides a simple way to generate SAX2 events from nested Perl data structures, while providing finer-grained control over the resulting document streams.
Processing comes in two flavors: Simple Style and Stream Style:
In a nutshell, simple style is best used for those cases where you have a a single Perl data structure that you want to convert to XML as quickly and painlessly as possible. Stream style is more useful for cases where you are receiving chunks of data (like from a DBI handle) and you want to process those chunks as they appear. See PROCESSING METHODS for more info about how each style works.
XML::Generator::PerlData 0.89 Screenshot
Advertisements
XML::Generator::PerlData 0.89 Keywords
XML
PerlData
SAX2
SomeSAX2HandlerOrFilter
PerlData 0.89
Perl data structures
Data Structures
perl extension
Perl
data
handler
events
nested
style
XML::Generator::PerlData
XMLGeneratorPerlData
Bookmark XML::Generator::PerlData 0.89
XML::Generator::PerlData 0.89 Copyright
WareSeeker periodically updates pricing and software information of XML::Generator::PerlData 0.89 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of XML::Generator::PerlData 0.89 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
stringified perl data structures
perl data structures cookbook
perl data structures hash
handlery san francisco
perl data structures tree
java data structures
chelsea handler
handler corporation
data structures and algorithms
perlane
dataquick
handlery hotel san diego
data structures in c++
handler dental
food handlers card
events in las vegas
data structures algorithms analysis
data structures lectures
Related Software
XML::Generator is a Perl extension for generating XML. Free Download
XML::Generator::DOM is an XML::Generator subclass for producing DOM trees instead of strings. Free Download
XML::Generator::RSS10::dc adds support for the Dublin Core (dc) RSS 1.0 module. Free Download
XML::Generator::vCard is a Perl module that can generate SAX2 events for vCard 3.0 Free Download
XML::Generator::vCard::RDF is a Perl module that can generate RDF/XML SAX2 events for vCard 3.0 Free Download
SOAP::Data is a Perl class that provides the means by which to explicitly manipulate and control all aspects of the way. Free Download
Clone::More is a Perl module that can copy Perl data structures. Free Download
Graph is a Perl module with graph data structures and algorithms. Free Download
Latest Software
Popular Software
Favourite Software