in reply to accessing root tags when using XML::Twig and twig_roots
I think that what you are looking for is the start_tag_handlers option, which lets you call a handler as soon as the start tag of an element has been parsed.
In the handler you can die (provided the call to parse is wrapped in an eval) or do whatever you want, including setting regular handlers.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: accessing root tags when using XML::Twig and twig_roots
by John M. Dlugosz (Monsignor) on May 04, 2006 at 19:25 UTC | |
by Argel (Prior) on May 04, 2006 at 20:27 UTC | |
by John M. Dlugosz (Monsignor) on May 05, 2006 at 21:14 UTC | |
by mirod (Canon) on May 04, 2006 at 19:37 UTC |