GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  XML::PARSER::STYLE::SUBS (3)

.ds Aq ’

NAME

XML::Parser::Style::Subs - glue for handling element callbacks

CONTENTS

SYNOPSIS



  use XML::Parser;
  my $p = XML::Parser->new(Style => Subs, Pkg => MySubs);
  $p->parsefile(foo.xml);
 
  {
    package MySubs;
   
    sub foo {
      # start of foo tag
    }
   
    sub foo_ {
      # end of foo tag
    }
  }



DESCRIPTION

Each time an element starts, a sub by that name in the package specified by the Pkg option is called with the same parameters that the Start handler gets called with.

Each time an element ends, a sub with that name appended with an underscore (_), is called with the same parameters that the End handler gets called with.

Nothing special is returned by parse.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 PARSER::STYLE::SUBS (3) 2014-12-11

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.