472,145 Members | 1,425 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,145 software developers and data experts.

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


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.



Jul 19 '05 #1
0 1761

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by indyjason79 | last post: by
reply views Thread by anthony.raj | last post: by
20 posts views Thread by cscorley | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.