projects
/
catagits/XML-Feed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Move to the Formats identifying what content to look at
[catagits/XML-Feed.git]
/
lib
/
XML
/
Feed
/
Format
/
Atom.pm
diff --git
a/lib/XML/Feed/Format/Atom.pm
b/lib/XML/Feed/Format/Atom.pm
index
4b2f395
..
9336acb
100644
(file)
--- a/
lib/XML/Feed/Format/Atom.pm
+++ b/
lib/XML/Feed/Format/Atom.pm
@@
-14,6
+14,14
@@
XML::Atom::Entry->mk_elem_accessors(qw( lat long ), ['http://www.w3.org/2003/01/
use XML::Atom::Content;
+sub identify {
+ my $class = shift;
+ my $xml = shift;
+ my $tag = $class->_get_first_tag($xml);
+ return ($tag eq 'feed');
+}
+
+
sub init_empty {
my ($feed, %args) = @_;
$args{'Version'} ||= '1.0';