in reply to Re: How can I keep or discard certain blocks of an XML file based on first line of block?
in thread How can I keep or discard certain blocks of an XML file based on first line of block?

BASIC on a TRS-80 :) Nice.
It doesn't sound too hard to convert the input to a scalar with join and do a non-greedy pattern match to cut out the parts you don't want. Hacking XML in this way always seems to end up causing more pain than it's worth. You are better off using a XML module from CPAN that has been tested and will cover every corner case. Even if learning how to use that module takes longer it's an investment in the speed of your future coding and the stability of your code.
  • Comment on Re: How can I keep or discard certain blocks of an XML file based on first line of block?