diff options
author | Frédéric Guillot <fred@miniflux.net> | 2019-12-23 14:39:54 -0800 |
---|---|---|
committer | Frédéric Guillot <fred@miniflux.net> | 2019-12-23 14:45:58 -0800 |
commit | 200b1c304b999191a29f36d4122e7aa05481125c (patch) | |
tree | bd7b38bddd14a99f9c8eddf3e4860fce77d87166 /reader/rdf/dublincore.go | |
parent | 1b33bb3d1cc01067fa8091b0e73a389fc189958c (diff) |
Improve Dublin Core support for RDF feeds
Diffstat (limited to 'reader/rdf/dublincore.go')
-rw-r--r-- | reader/rdf/dublincore.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/reader/rdf/dublincore.go b/reader/rdf/dublincore.go new file mode 100644 index 0000000..f06456d --- /dev/null +++ b/reader/rdf/dublincore.go @@ -0,0 +1,17 @@ +// Copyright 2019 Frédéric Guillot. All rights reserved. +// Use of this source code is governed by the Apache 2.0 +// license that can be found in the LICENSE file. + +package rdf // import "miniflux.app/reader/rdf" + +// DublinCoreFeedElement represents Dublin Core feed XML elements. +type DublinCoreFeedElement struct { + DublinCoreCreator string `xml:"http://purl.org/dc/elements/1.1/ channel>creator"` +} + +// DublinCoreEntryElement represents Dublin Core entry XML elements. +type DublinCoreEntryElement struct { + DublinCoreDate string `xml:"http://purl.org/dc/elements/1.1/ date"` + DublinCoreCreator string `xml:"http://purl.org/dc/elements/1.1/ creator"` + DublinCoreContent string `xml:"http://purl.org/rss/1.0/modules/content/ encoded"` +} |