A lax Web news feed parser
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

39 lines
811 B

Minimal feed:
input: >
<rss version="2.0"/>
output:
format: rss
version: '2.0'
Channel GUID:
input: >
<rss>
<channel>
<guid>http://example.com/</guid>
</channel>
</rss>
output:
format: rss
id: 'http://example.com/'
Channel GUID with whitespace:
input: >
<rss>
<channel>
<guid>
http://example.com/
</guid>
</channel>
</rss>
output:
format: rss
id: 'http://example.com/'
Root GUID: # Any elements on the RSS2 root element should be ignored
input: >
<rss>
<channel/>
<guid>http://example.com/</guid>
</rss>
output:
format: rss