Using XML::Parser with XML::Parser(Style=>'Subs', Pkg=>'SubHandlers')

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • flamencoman@earthlink.net

    Using XML::Parser with XML::Parser(Style=>'Subs', Pkg=>'SubHandlers')

    Hi,

    Has any one used the XML::Parser module with the Subs style?

    The Perl documentation states:

    "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."

    The problem is I don't know what the syntax is for the subroutines
    that are supposed to go in the package. I couldn't find any examples
    that show how to use this in the Perl FAQ or via a search on the net.

    Thanks,

    Flamencoman@ear thlink.net






Working...