This seems like almost the same question that was asked here. Did you also ask that question?
If the replies didn't help, then please say so rather than starting a complete new thread.
[mod://XML::twig] is probably your best bet for doing this sort of stuff with XML or XHTML.
If you have trouble getting going with XML::twig tell us in a little more detail just what you want to be able to do. My guess is that you actually want to extract some of that data, but you don't actually say that. The following may get you started:
use strict;
use warnings;
use XML::Twig;
my $t= XML::Twig->new (twig_roots => {'Data' => \&extract});
$t->parse (do {local $/; ()});
sub extract
{
my ($t, $data) = @_;
$data->print;
print "\n";
}
__DATA__
| DATA1 |
DATA2 |
DATA3 |
DATA4 |
DATA5 |
DATA6 |
DATA6 |
DATA7 |
Prints:
DATA1 DATA2 DATA3 DATA4 DATA5 DATA6 DATA6 DATA7
perlmonks.org content © perlmonks.org and Anonymous Monk, GrandFather, McDarren
prlmnks.org © 2006 edmund von der burg (eccles & toad)
v 0.03