in reply to Re: XML::Simple problem, or How to convert HTML to Perl and then back again.
in thread XML::Simple problem, or How to convert HTML to Perl and then back again.

You can use

my $tree = HTML::TreeBuilder->new(); $tree->ignore_unknown(0); # so it doesn't skip unknown $tree->xml_mode(1); # so it will catch <br /> tags i +f you like XHTML $tree->parse_file($file});
to do it in HTML::TreeBuilder
Eric Hodges
  • Comment on Re: Re: XML::Simple problem, or How to convert HTML to Perl and then back again.
  • Download Code