karpatov has asked for the wisdom of the Perl Monks concerning the following question:
With help of relevant tutorial I cobbled up a script using XML::twig for extraction of 2 values (disparate branches of the tree of each record) from quite big(100 000 records) and quite structured database output. XML is new for me but I somehow believed that it is not "proper" to use regular expressions for this propose when there is "structure" a and set of tools for manipulation with it. But then I started to think that there is no reason to discard using regular expressions, especially when I need just a few values from each record. Are there some general guidelines when to use RE or some XML parsing tool? And known pitfalls of either approach? tx karpatov
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: XML parsing vs Regular expressions
by ajt (Prior) on Feb 16, 2008 at 21:59 UTC | |
by Joost (Canon) on Feb 16, 2008 at 23:57 UTC | |
Re: XML parsing vs Regular expressions
by Cody Pendant (Prior) on Feb 17, 2008 at 05:23 UTC | |
Re: XML parsing vs Regular expressions
by grinder (Bishop) on Feb 17, 2008 at 12:14 UTC | |
Re: XML parsing vs Regular expressions
by planetscape (Chancellor) on Feb 19, 2008 at 16:37 UTC | |
Re: XML parsing vs Regular expressions
by Jenda (Abbot) on Feb 18, 2008 at 14:33 UTC |
Back to
Seekers of Perl Wisdom