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;
This is a SAX Filter implementation and so implements these methods, but they are of little concern to the user.
<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.