Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: XML parsing vs Regular expressionsby Jenda (Abbot) |
on Feb 18, 2008 at 14:33 UTC ( [id://668559]=note: print w/replies, xml ) | Need Help?? |
I'd definitely recomend going with a proper parser. There are several styles of parsers, good for different types of uses. For what you seem to need in this case you might like XML::Rules. It's designed to let you select the things you are interested in and tweak the structure of the data as it's extracted from the XML file. You might like the style ... or not. In either case it's good to try different styles.
In Section
Seekers of Perl Wisdom
|
|