Permalink
Browse files

add rdf.

  • Loading branch information...
1 parent 8365cd1 commit 2d4f078aeaf0da08b5331561997c14bfac7e50af @mattn committed Apr 15, 2012
Showing with 10 additions and 0 deletions.
  1. +10 −0 autoload/webapi/feed.vim
View
@@ -15,6 +15,16 @@ function! webapi#feed#parseURL(url)
\ "date": item.childNode('pubDate').value(),
\})
endfor
+ elseif dom.name == 'rdf:RDF'
+ for item in dom.childNodes('item')
+ call add(items, {
+ \ "title": item.childNode('title').value(),
+ \ "link": item.childNode('link').value(),
+ \ "content": item.childNode('description').value(),
+ \ "id": item.childNode('link').value(),
+ \ "date": item.childNode('dc:date').value(),
+ \})
+ endfor
elseif dom.name == 'feed'
for item in dom.childNodes('entry')
call add(items, {

0 comments on commit 2d4f078

Please sign in to comment.