Displaying 5 results from an estimated 5 matches for "build_xml".
Did you mean:
build_all
2006 Mar 20
3
can''t get my rss to validate with feedtools
...w
feed.entries << FeedTools::FeedItem.new
feed.entries[0].author.name = "Charlie Bowman"
feed.entries[0].title = @post.title
feed.entries[0].link = "http://server:3000/pragmatic/"
feed.entries[0].content = @post.post
# Assumes this is inside a .rxml file
feed.entries[0].build_xml("rss", 2.0,xml)
Here''s what the validator tells me. Thanks for any input!
This feed does not validate.
*
line 1, column 0: Undefined root element: item [help]
<item>
*
line 4, column 2: XML parsing error: <unknown>:4:2: unbound pr...
2006 Apr 29
3
Feedtools question
...FeedTools::FeedItem.new
@feed_item.link =
"http://localhost:3000/articles/view/#{@article.id}"
@feed_item.content = render_to_string(:layout => false, :template
=> "articles/view.rhtml")
@feed.entries << @feed_item
end
end
end
and
@feed.build_xml(''rss'', 2.0)
in userrss.rxml
They can generate the rss feeds well,eg,if I type
http://localhost:3000/feeds/userrss/1
I can get well organized xml output.
Following is the code for feeds reading:
@feed =
FeedTools::Feed.open("http://localhost:3000/feeds/userrss/#{params[:id...
2006 Apr 30
2
Rss feed items disappear using feedtools?
...ols::FeedItem.new
@feed_item.title = "title"
@feed_item.link = " http://localhost:3000/"
@feed_item.description = render_to_string(:layout => false,
:template => "feeds/view.rhtml")
@feed.entries << @feed_item
end
end
and @feed.build_xml(''rss'', 2.0) in the userrss.rxml file
the generated rss can be read by any desktop rss reader correctedly
Following is the code for rss read:
controller:
@feed = FeedTools::Feed.open("http://127.0.0.1:3000/feeds/userrss/1")
view:
<div class="contentBox">...
2006 Mar 20
7
error using feedtools
...bles.com/rss"
feed.entries << FeedTools::FeedItem.new
feed.entries[0].title = @post.title
feed.entries[0].link =
"http://www.recentrambles.com/pragmatic/view/#{@post.id}"
feed.entries[0].content = @post.post
# Assumes this is inside a .rxml file
feed.build_xml("atom", 1.0, xml)
end
This causes this error:
uninitialized constant FeedTools
This error occured while loading the following files:
feed_tools.rb
What am I forgetting to do?
--
Posted via http://www.ruby-forum.com/.
2006 May 08
8
RSS Feed / xml.link problem?
I''m having an odd problem. I''m trying to create an RSS feed (working off the
Recipe), but "xml.link" generates error about "Can''t convert Hash to
String". From the error trace, it *looks* like it''s calling the a fileutil
''link'' method (as in, filesystem symbolic link) - even xml.tag! generates
this error.
Er, how do I make