XML::SimpleParser - Perl extension for XML parsing without external libraries


NAME

XML::SimpleParser - Perl extension for XML parsing without external libraries


SYNOPSIS

        use XML::SimpleParse;
        my $parser = new XML::SimpleParser;
        my $tree = $parser->parse_file('example.xml');


DESCRIPTION

XML::Parser call Expat libraries and make many unneeded and slow things. I need parser for reading XML documents with large tolerance to errors and non-standard things. This is answer for question why I make yet another XML parser.


THE XML::SIMPLEPARSER CLASS

new

Constructor create instance of XML::SimpleParser class.

        my $parser = new XML::SimpleParser;

parse STRING

Parse STRING (XML) and return tree with XML document. Return undef when exception occurs.

parse_file NAME

Parse file with filename NAME. If NAME is filehandle, parse its contents. Return like parse().


VERSION

0.01


AUTHOR

(c) 2001 Milan Sorm, sorm@pef.mendelu.cz at Faculty of Economics, Mendel University of Agriculture and Forestry in Brno, Czech Republic.

This module was needed for making SchemaView Plus (svplus) for reading and saving XML files (not total well-structured non-standard files must be accepted too - e.g. Java XML packages results etc.).


SEE ALSO

perl(1), svplus(1), XML::Parser(3), XML::Dumper(3), IO::File(3).

 XML::SimpleParser - Perl extension for XML parsing without external libraries