From c8e23415d1b4101a4b25635f6499523ddf1aa64b Mon Sep 17 00:00:00 2001 From: Chris Grindstaff Date: Wed, 27 Mar 2013 16:05:18 -0300 Subject: [PATCH] Read author for atom item --- atom.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/atom.go b/atom.go index 27aaa15..a07430c 100644 --- a/atom.go +++ b/atom.go @@ -130,6 +130,13 @@ func (this *Feed) readAtom(doc *xmlx.Document) (err error) { i.Content.Base = tn.S("xml", "base") i.Content.Text = tn.Value } + + if tn = item.SelectNode(ns, "author"); tn != nil { + i.Author = Author{} + i.Author.Name = tn.S(ns, "name") + i.Author.Uri = tn.S(ns, "uri") + i.Author.Email = tn.S(ns, "email") + } ch.Items = append(ch.Items, i) }