The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

XML::DOM2::Parser - Sax based xml parser for XML::DOM2

DESCRIPTION

This parser was constructed using XML::SAX::PurePerl which Was known at the time to lack a number of calls which where important for dealing with things like document type and text formating and xml decls. hopfully in the future this will be fixed and this method will be able to take advantage of those part of an xml page.

$parser->new( %options )

  Create a new parser object.

$parser->document()

  Return the document object

$parser->start_document( $document )

  Called at the start of a document.

$parser->end_document()

  Called at the end of a document.

$parser->start_element( $node )

  Start a new xml element

$parser->end_element( $element )

  Ends an xml element

$parser->characters()

  Handle part of a cdata by concatination

$parser->text()

  Handle combined text strings as cdata

$parser->comment()

 WARNING: Comments are currently removed!

$parser->start_cdata()

  Never used by parser.

$parser->end_cdata()

  Never used by parser.

$parser->processing_instruction()

  Never used by parser.

$parser->doctype_decl( $dtd )

  We want to store the below details for the document creation

$parser->xml_decl( $xml )

  Decode the xml decleration information.

COPYRIGHT

Martin Owens, doctormo@cpan.org

SEE ALSO

XML::DOM2,XML::SAX