#!/usr/bin/perl
## the version of XML::LibXML installed in the system is 1.63, so I tried installing 1.65 here:
BEGIN { unshift @INC, '/tmp/pm/lib/perl/5.8.8'; }
use warnings;
use strict;
use XML::LibXML;
print "Version: ", $XML::LibXML::VERSION, "\n";
my $parser = XML::LibXML->new;
my $item = $parser->parse_balanced_chunk (<<'EOT');
Insert title here
http://foo/bar.html
Insert description herefoobar@19700101:000000+0000
EOT
my $title = $item->findvalue ('//title');
print "Still alive!\n";
my $date = $item->findvalue ('//guid');
print "Still alive!\n";
print "got title ($title) and date ($date)\n";
####
$ ./foo.pl
Version: 1.65
Still alive!
Segmentation fault (core dumped)