laziness, impatience, and hubris | |
PerlMonks |
XML::Parser and objectsby Ineffectual (Scribe) |
on Feb 28, 2003 at 01:18 UTC ( [id://239310]=perlquestion: print w/replies, xml ) | Need Help?? |
Ineffectual has asked for the wisdom of the Perl Monks concerning the following question:
I'm writing an object oriented parser for complex XML documents (blast output). I need to parse certain fields out of a complex tree and I want to skip over the ones that I don't need (or avoid saving the data). Hit_num is the first element that I'd like to save in the file (it is a child element of other things that I don't want to save). The main problem (right now) is that I'm not sure if this is going to work with object oriented style and whether I should just dump that part. What I'm running into is that I can't pass variables between the start_handler, char_handler, and end_handler. I don't know if there's a way in XML::Parser to do this, I've looked at the docs and can't figure that part out. Perhaps this is because I'm using parsefile instead of parse? As you can probably tell by now, this is my first script involving XML and any advice would be appreciated. ----- Thanks for any help. Ineff
Back to
Seekers of Perl Wisdom
|
|