| XML-Toolkit documentation | view source | Contained in the XML-Toolkit distribution. |
XML::Toolkit::Builder - A set of tools for Building XML Classes via XML::SAX Streams
use XML::Toolkit::Builder;
my $builder = XML::Toolkit::Builder->new(
filter => $filter,
parser => XML::SAX::ParserFactory->new( Handler => $filter ),
);
$self->builder->parse_file( $file );
say $builder->render;
The render method is required. This is the class that renders the parsed events into a set of Moose classes. XML::Toolkit::Builder::Filter documented elsewhere in this distribution is the default implementation.
The methods parse_uri, parse_file and parse_string are required. This defaults to a XML::SAX::ParserFactory parser.
None reported.
No bugs have been reported.
Please report any bugs or feature requests to
bug-xml-toolkit@rt.cpan.org, or through the web interface at
http://rt.cpan.org.
Chris Prather <chris@prather.org>
Copyright (c) 2008, Chris Prather <chris@prather.org>. Some rights reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
| XML-Toolkit documentation | view source | Contained in the XML-Toolkit distribution. |