Perl-Sensitive Sunglasses | |
PerlMonks |
Re: well formed xmlby ZZamboni (Curate) |
on Feb 28, 2001 at 20:28 UTC ( [id://61339]=note: print w/replies, xml ) | Need Help?? |
You could try XML::Simple. You don't have to define
any handlers, just give it the text, and it will parse it.
It will also die in case of malformed input, but in
this case I think it's a legitimate application of eval.
See the "Error handling" section of the XML::Simple docs.
--ZZamboni
In Section
Seekers of Perl Wisdom
|
|