in reply to Extract individual lines and block of text from large files
sample data also goes in code tags
for xml you want one of XML::Twig or XML::LibXML , both can do well to manage memory and both come with strawberry
http://xmltwig.org/article/ways_to_rome/ways_to_rome.html, Re: question about lookaheads and threatexpert/html parsing
In Section
Seekers of Perl Wisdom