Quantcast
Channel: Parsing RSS feed in Go - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Answer by Mark for Parsing RSS feed in Go

$
0
0

The xml from the rss feed has a channel element with two child 'link' elements: 'link' and 'atom:link'. Even though one has a namespace prefix, Go xml unmarshaller sees a conflict. See also local name collisions fail and issue on github.

<?xml version="1.0" encoding="UTF-8"?>...<channel><title>Forum - Sixty Second Idea to Improve the World</title><link>http://www.bbc.co.uk/programmes/p02nrvz8</link>      ...<atom:link href="http://www.bbc.co.uk/..." />

Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>