Help with libxml-ruby and SAX parser

Hello,

I try to read through an XML document with the libxml-ruby SAX parser. It is possible to execute the parser and I can see the output of the element according to the "puts" in the Saxparser class.

However I do not know how to get the results after the "on_start_element" and write them in to a hash. I'm browsing through Google since 3 days without any luck to find an example or understandable documentation how to get the data.

I need to get the data between <row> and </row>.

Is there anybody that can help me?

Thanks

I have done following:

Created a saxparser.rb model that looks like this:

Chris, the SAX Parser has an "on_characters" callback. You need to note when you see an on_start_tag for the tag "row". Then, in your on_characters callback, you use the characters it presents you. When you see an end tag for "row", you need to turn off your note. Get it?