NAME
RDF::RDFa::Template::SAXFilter - A SAX Filter that does variable insertions and removes templates
SYNOPSIS
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;
METHODS
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.
AUTHOR
Kjetil Kjernsmo, <kjetilk at cpan.org>
ACKNOWLEDGEMENTS
This would have been hard to do without the help of the dahuts, especially Kip Hampton and Chris Prather.
COPYRIGHT & LICENSE
Copyright 2010 Kjetil Kjernsmo.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.