use strict; package InSilicoSpectro::Utils::XML::SaxIndexMaker; require Exporter; =head1 NAME InSilicoSpectro::Utils::XML::SaxIndexMaker =head1 DESCRIPTION A handler to be used with XML::Parser::PerlSax. The goal is to read an indexMaker (xmlIndexMaker) file, stating which elements sould be indexed from a (large) source xml file. Then this source file is parsed, indexed element are saved into an index (xmlIndex) file. =head1 METHODS =head2 my $sim=InSilicoSpectro::Utils::XML::SaxIndexMaker->new(); Instanciate a new SaxIndexMaker =head2 $sim->readXmlIndexMaker($file) =head2 $sim->readXmlIndexMaker(file=>$file) =head2 $sim->readXmlIndexMaker(contents=>$xmlcontents) Read what is to be caught and put into the index. xmlIndexMaker files follows the format =begin text