All pastes #2076903 Raw Edit

Unnamed

public text v1 · immutable
#2076903 ·published 2011-06-08 19:50 UTC
rendered paste body
    my $parser = XML::LibXML->new();
    my $tree = $parser->load_xml(string => $response->content);

    my $root = $tree->getDocumentElement;
    my @items = $root->getElementsByTagName('item');
    foreach my $item (@items) {
        my $title = $item->getAttribute('title');
        my $description = $item->getAttribute('description');
        print $title;
        print $description;
        print "here\n";
    }