Skip to content

Commit 505ebc8

Browse files
committed
Added sample feed and namespace
1 parent df692b9 commit 505ebc8

File tree

2 files changed

+48
-0
lines changed
  • src
    • main/kotlin/com/github/magneticflux/rss/namespaces/atom/elements
    • test/resources/com/github/magneticflux/rss

2 files changed

+48
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.github.magneticflux.rss.namespaces.atom.elements
2+
3+
const val ATOM_REFERENCE = "http://www.w3.org/2005/Atom"
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<feed xmlns="http://www.w3.org/2005/Atom">
3+
<title type="text">dive into mark</title>
4+
<subtitle type="html">
5+
A &lt;em&gt;lot&lt;/em&gt; of effort
6+
went into making this effortless
7+
</subtitle>
8+
<updated>2005-07-31T12:29:29Z</updated>
9+
<id>tag:example.org,2003:3</id>
10+
<link href="http://example.org/" hreflang="en" rel="alternate" type="text/html" />
11+
<link href="http://example.org/feed.atom" rel="self" type="application/atom+xml" />
12+
<rights>Copyright (c) 2003, Mark Pilgrim</rights>
13+
<generator uri="http://www.example.com/" version="1.0">
14+
Example Toolkit
15+
</generator>
16+
<entry>
17+
<title>Atom draft-07 snapshot</title>
18+
<link href="http://example.org/2005/04/02/atom" rel="alternate" type="text/html" />
19+
<link href="http://example.org/audio/ph34r_my_podcast.mp3"
20+
length="1337"
21+
rel="enclosure"
22+
type="audio/mpeg" />
23+
<id>tag:example.org,2003:3.2397</id>
24+
<updated>2005-07-31T12:29:29Z</updated>
25+
<published>2003-12-13T08:29:29-04:00</published>
26+
<author>
27+
<name>Mark Pilgrim</name>
28+
<uri>http://example.org/</uri>
29+
<email>f8dy@example.com</email>
30+
</author>
31+
<contributor>
32+
<name>Sam Ruby</name>
33+
</contributor>
34+
<contributor>
35+
<name>Joe Gregorio</name>
36+
</contributor>
37+
<content type="xhtml" xml:base="http://diveintomark.org/" xml:lang="en">
38+
<div xmlns="http://www.w3.org/1999/xhtml">
39+
<p>
40+
<i>[Update: The Atom draft is finished.]</i>
41+
</p>
42+
</div>
43+
</content>
44+
</entry>
45+
</feed>

0 commit comments

Comments
 (0)