RDF::RDFa::Template::SAXFilter - A SAX Filter that does variable insertions and removes templates
use XML::LibXML::SAX::Parser; use XML::LibXML::SAX::Builder; my $builder = XML::LibXML::SAX::Builder->new(); my $sax = RDF::RDFa::Template::SAXFilter->new(Handler => $builder, Doc => $doc); my $generator = XML::LibXML::SAX::Parser->new(Handler => $sax); $generator->generate($doc->dom);
$doc must contain a XML::LibXML::Document and the interesting result from this operation can be found by saying $builder->result;
new
start_element
end_element
This is a SAX Filter implementation and so implements these methods, but they are of little concern to the user.
Kjetil Kjernsmo, <kjetilk at cpan.org>
<kjetilk at cpan.org>
This would have been hard to do without the help of the dahuts, especially Kip Hampton and Chris Prather.
Copyright 2010 Kjetil Kjernsmo.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install RDF::RDFa::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RDF::RDFa::Template
CPAN shell
perl -MCPAN -e shell install RDF::RDFa::Template
For more information on module installation, please visit the detailed CPAN module installation guide.