From bbabaefd1842efbd1ca909af4c7fee9ae3f9b13e Mon Sep 17 00:00:00 2001 From: James Gregory Date: Tue, 1 Oct 2013 18:31:08 +1000 Subject: [PATCH] Add optional xmlns to AtomEntry This allows individual entries to be marshalled to XML with a valid xmlns. It's optional so entries in a feed don't get an xmlns of their own. --- atom.go | 1 + 1 file changed, 1 insertion(+) diff --git a/atom.go b/atom.go index a49b399..1f2115f 100644 --- a/atom.go +++ b/atom.go @@ -41,6 +41,7 @@ type AtomContributor struct { type AtomEntry struct { XMLName xml.Name `xml:"entry"` + Xmlns string `xml:"xmlns,attr,omitempty"` Title string `xml:"title"` // required Updated string `xml:"updated"` // required Id string `xml:"id"` // required