Over a million developers have joined DZone.

Perl XML::Twig (very Simple Example)

·
Using XML::Twig


use XML::Twig;

my $xml = '

  
      This is 
some HTML text
'; my $twig = XML::Twig->new( twig_handlers => { content => sub { $_->print; print "\n"; }, }, ); $twig->parse($xml); $twig->purge;
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}