search for: fblurb

Displaying 3 results from an estimated 3 matches for "fblurb".

Did you mean: blurb
2006 Jun 26
0
DBI question. How do I load a database with data parsed from REXML?
I wrote a rexml script that parses rather big xml files (DOM parsing) and builds an object out of them. This is what it looks like after i parse the xml file and display the object: [#<Article:0xb79e7428 @brand="This is a story from ", @id=5337, @fblurb="burb", @ntype="news type here", @copy="Copyright \302\251 2006 ", @source="source", @body="body", @archive=nil, @att="attribution here", @blurb="Signs and symptoms of food poisoning", @post=nil, @fimage=nil, @head="Health T...
2006 Jun 24
1
Parsing XML with REXML problem
Why can it not find my object? What am i missing here? Here is my code: require ''rexml/document'' include REXML # classes to represent the objects and relationships in the xml file class Article attr_accessor :id, :post, :archive, :ntype, :head, :blurb, :body, :fblurb, :fimage, :att, :source, :copy, :brand end # the base parser class BaseXMLParser def initialize(filename) @raw_xml = File.open(filename).read @newsfeed = [] end end # DOM-based parsing class FeedXMLParser < BaseXMLParser def get_newsfeed doc = Document.new(@raw_xml) XPa...
2006 Jun 24
0
Best approach for loading a data object into mysql?
I wrote a rexml script that parses rather big xml files (DOM parsing) and builds an object out of them. This is what it looks like after i parse the xml file and display the object: [#<Article:0xb79e7428 @brand="This is a story from ", @id=5337, @fblurb="burb", @ntype="news type here", @copy="Copyright \302\251 2006 ", @source="source", @body="body", @archive=nil, @att="attribution here", @blurb="Signs and symptoms of food poisoning", @post=nil, @fimage=nil, @head="Health T...