=head1 NAME XML::Records - Perlish record-oriented interface to XML =head1 SYNOPSIS use XML::Records; my $p=XML::Records->new('data.lst'); $p->set_records('credit','debit'); my ($t,$r) while ( (($t,$r)=$p->get_record()) && $t) { my $amt=$r->{Amount}; if ($t eq 'debit') { ... } } =head1 DESCRIPTION XML::Records provides a simple interface for reading "record-structured" XML documents, that is, documents in which the immediate children of the root element form a sequence of identical and independent sub-elements such as log entries, transactions, etc., each of which consists of "field" child elements or attributes. XML::Records allows you to access each record as a simple Perl hash. =head1 METHODS =over 4 =item $reader=XML::Records->new(source, [options]); Creates a new reader object I is either a reference to a string containing the XML, the name of a file containing the XML, or an open IO::Handle or filehandle glob reference from which the XML can be read. The I