in reply to XML Parsing question
...outputs this:use XML::Twig; my $data; { undef $/; $data = <DATA>; } my $XML = XML::Twig->new; $XML->parse($data); print $XML->root->children_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>
Self-Archiving E-mail Messages in Outlook The following e-mail self-archiving create an Archive folder/.pst file. See Outlook 2003 .pst file Management for instruction your messages. Select your Files (This refers to your primary...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: XML Parsing question
by chtaylo2 (Initiate) on Jul 08, 2010 at 17:27 UTC | |
by Anonymous Monk on Jul 08, 2010 at 19:12 UTC | |
by eff_i_g (Curate) on Jul 08, 2010 at 20:17 UTC |