Reading and converting a Diigo RSS feed
Posted: Sat May 08, 2010 12:06 pm
I want to upload the contents of an RSS feed and convert it into a web page. In this case, it is a feed for a Diigo bookmarks list.
To do this, I use the DOM model and get the different elements of each entry using a getElementsByTagName struct.
This works fine. However, in this Diigo feed, the <description> tag contains three paragraph sections, delimited by <p> tags. For various reasons, I would like to handle the contents of each paragraph in a different way, so I want to retrieve each of these paragraphs separately. Unfortunately, for unknown reasons, these <p> tags are not really present like that in the feed. Instead, they are coded in an escaped form (<p>), which apparently makes that the getElementsByTagName does not work on these tags.
Any ideas for handling this (in an easy way)?
To do this, I use the DOM model and get the different elements of each entry using a getElementsByTagName struct.
This works fine. However, in this Diigo feed, the <description> tag contains three paragraph sections, delimited by <p> tags. For various reasons, I would like to handle the contents of each paragraph in a different way, so I want to retrieve each of these paragraphs separately. Unfortunately, for unknown reasons, these <p> tags are not really present like that in the feed. Instead, they are coded in an escaped form (<p>), which apparently makes that the getElementsByTagName does not work on these tags.
Any ideas for handling this (in an easy way)?