butchie3980 has asked for the wisdom of the Perl Monks concerning the following question:

Hello All,
I want to change the behavior of XML::SAX::ByRecord from
the default "any node above root" to look for a specific
record type.

Here's what I have so far:
use XML::SAX::Machines qw( Pipeline ByRecord ) ;
use My::SaxRecordFilter;

@channels = ( "My::SaxRecordFilter" );
my $d = XML::SAX::ByRecord->new( @channels );

my $machine = Pipeline(
ByRecord( $d ),
);

$machine->parse_uri( "test.xml" );


Where can I hook into the "set_split_path" of the
DocSplitter that is inside the ByRecord object?

Thanks.
  • Comment on How do I set the split point for XML::SAX::ByRecord?