Improved feed library with comments, bug fixes and code factorization.

This commit is contained in:
2015-09-08 21:45:27 +02:00
parent 39887c8bdb
commit a5e150d1c0
12 changed files with 46 additions and 41 deletions

View File

@@ -51,7 +51,7 @@ feature -- Access
if attached x_rss.element_by_name ("channel") as x_channel then
if attached xml_element_text (x_channel, "title") as x_title then
create Result.make (x_title)
Result.set_description (xml_element_text (x_channel, "description"))
Result.set_description (xml_element_text (x_channel, "description"), "xhtml")
Result.set_updated_date_with_text (xml_element_text (x_channel, "lastBuildDate"))
if attached links_from_xml (x_channel, "link") as l_links then
across

View File

@@ -10,20 +10,13 @@ inherit
FEED_VISITOR
FEED_GENERATOR
rename
process_feed as visit_feed
end
create
make
feature {NONE} -- Initialization
make (a_buffer: STRING_8)
do
buffer := a_buffer
initialize
end
buffer: STRING_8
feature -- Visitor
visit_feed (a_feed: FEED)