Another possiblity might be:
while ($token = $p->get_token()) { if ($token->is_tag()) { # do something } }
Note: I have no experience with XML::TokeParser so it is possibile that this code is completly useless...
In reply to Re: XML::TokeParser and malformed XML
by Anonymous Monk
in thread XML::TokeParser and malformed XML
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |