You will have to use nokogiri gem to parse it and iterate.

More details here.

http://www.nokogiri.org/tutorials/parsing_an_html_xml_document.html

On Thu, Nov 13, 2014 at 8:12 PM, Scott Bradford <[email protected]>
wrote:

> I am trying to build it nearly like the PHP example above.
>
> I'll build the header row for a table and then run the loop to fill the
> cells and then put in a closer for the table.
>
> Here is a sample of the data:
>
> <store>
>     <storeId>2970</storeId>
>     <name>Best Buy Mobile - Brunswick Square Mall </name>
> </store>
> <store>
>     <storeId>598</storeId>
>     <name>East Brunswick</name>
> </store>
> <store>
>     <storeId>2980</storeId>
>     <name>Best Buy Mobile - Menlo Park Mall </name>
> </store>
>
> I will be adding in more portions of the hash to the end product, but
> want to understand how to iterate two items first. Does this help?
>
> --
> Posted via http://www.ruby-forum.com/.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ruby on Rails: Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/rubyonrails-talk/868b943d64c9091b34cab5a19f698e17%40ruby-forum.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj-2dW-ReXYGm57VSLPne1B1bdRARvpPFnwL%2B90tpU8zmg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to