< Parsing a File >

If no handlers or styles are defined, XML::Parser will simply check for well-formedness.


use strict;
use XML::Parser;

my $parser = new XML::Parser();

my $file = shift;
$parser->parsefile($file);