- skip 'XML::Feed missing', 2 unless $have_xml_feed;
- my $p = XML::Feed->parse(\$feed);
- is($p->format, "Atom", "parsed atom feed");
- is(scalar $p->entries, 3, "parsed three entries");
- is($p->id, 'mailto:test@example',
- "id is set to default");
+ skip 'XML::TreePP missing', 3 unless $have_xml_treepp;
+ my $t = XML::TreePP->new->parse($feed);
+ like($t->{feed}->{-xmlns}, qr/\bAtom\b/,
+ 'looks like an an Atom feed');
+ is(scalar @{$t->{feed}->{entry}}, 3,
+ 'parsed three entries');
+ is($t->{feed}->{id}, 'mailto:v1@example.com',
+ 'id is set to default');