XML::Filter::Sort 1.01 review

Download
by rbytes.net on

XML::Filter::Sort is a SAX filter for sorting elements in XML. SYNOPSIS use XML::Filter::Sort; use XML::SAX::Machines qw(

License: Perl Artistic License
File size: 25K
Developer: Grant McLean
0 stars award from rbytes.net

XML::Filter::Sort is a SAX filter for sorting elements in XML.

SYNOPSIS

use XML::Filter::Sort;
use XML::SAX::Machines qw( :all );

my $sorter = XML::Filter::Sort->new(
Record => 'person',
Keys => [
[ 'lastname', 'alpha', 'asc' ],
[ 'firstname', 'alpha', 'asc' ],
[ '@age', 'num', 'desc']
],
);

my $filter = Pipeline( $sorter => *STDOUT );

$filter->parse_file(*STDIN);
Or from the command line:
xmlsort

This module is a SAX filter for sorting 'records' in XML documents (including documents larger than available memory). The xmlsort utility which is included with this distribution can be used to sort an XML file from the command line without writing Perl code (see perldoc xmlsort).

Requirements:
Perl

XML::Filter::Sort 1.01 keywords