File: DocumentHandler.pm

package info (click to toggle)
libbio-mage-utils-perl 20030502.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, sid, trixie
  • size: 356 kB
  • sloc: perl: 3,118; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 742 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
###############################################################################
# Bio::MAGE::XML::Handler::DocumentHandler package: Callbacks to process elements as they come
#                           from the SAX parser
###############################################################################
package Bio::MAGE::XML::Handler::DocumentHandler;
use strict;
use vars qw(@ISA);
@ISA = qw(XML::Xerces::PerlDocumentHandler Bio::MAGE::XML::Handler);

sub start_element {
  my ($self,$localname,$attrs) = @_;
  my %attrs = $attrs->to_hash();
  Bio::MAGE::XML::Handler::start_element($self,$localname,\%attrs);
}

sub end_element {
  Bio::MAGE::XML::Handler::end_element(@_);
}

sub characters {
  Bio::MAGE::XML::Handler::characters(@_);
}