in reply to Re: XML Parsing question
in thread XML Parsing question

I like Twig as well, however I'm on a enterprise system so have to stick with XML::Simple. Any idea how to do it with that module ?

Replies are listed 'Best First'.
Re^3: XML Parsing question
by Anonymous Monk on Jul 08, 2010 at 19:12 UTC
Re^3: XML Parsing question
by eff_i_g (Curate) on Jul 08, 2010 at 20:17 UTC
    Nope.

    Perhaps this horribly evil concoction?
    use Data::Dumper; my $data; { undef $/; $data = <DATA>; } my @text = grep { /^\S/ } map { s/^\s+|\s+$//g; $_ } $data =~ />([^<>] ++)/g; print Dumper(\@text); __DATA__ <HIT> <FIELD NAME="body"> <sep /> Self-Archiving E-mail Messages in <key>Outlook</key> The following e-mail self-archiving <sep /> create an Archive folder/.pst file. See <key>Outlook</key> 2003 .pst file Management for instruction <sep /> your messages. Select your <key>Files</key> (This refers to your primary... <sep /> </FIELD> </HIT>