Keep It Simple, Stupid | |
PerlMonks |
filtering unwanted tags based on child tag attribute valueby vikas1316 (Initiate) |
on Jan 06, 2015 at 14:53 UTC ( [id://1112345]=perlquestion: print w/replies, xml ) | Need Help?? |
vikas1316 has asked for the wisdom of the Perl Monks concerning the following question: I am somehow stuck and banging my head. I have to delete unwanted TRADES from a huge XML file.
Now, the second TRADE is having externtype = 'PROCC' inside <EVENT> node which is not legitimate(legitimate value is 'PROC') Hence the final output should be
which should get pasted to new file. My code is
Unfortunately, it's deleting EVENT tag instead of TRADE tag. Any hint will be appreciated.
Back to
Seekers of Perl Wisdom
|
|