You are here: Forums Ask a Rails expert How to create array from xml d...
Posted in Forums : Ask a Rails expert
Authority 0
Posting Rating 44
Sign in to rate this post
|
Hi
i have an xml and i want to crate array from this how to make array |
Authority 62
Posting Rating 100
Sign in to rate this post
|
XML is a representation of a Hash, not an Array. You can use Hash.from_xml(your_xml_string) for that. |
Authority 0
Posting Rating 44
Sign in to rate this post
|
HI Clemens
I am using hash = Hash.from_xml(doc)
I got full xml in hash form now i am trying to convert it in to array so i use
hash.to_a a well known command but |
Ask a Rails expert : Ruby Builder
Ask a Rails expert : Better programming skills
Ask a Rails expert : Select Option
Ask a Rails expert : Updating ruby version on windows
Ask a Rails expert : Periodicall Ajax Calls and Session Expiry
Ask a Rails expert : Sub queries in RoR
Ask a Rails expert : Remembering associations
Ask a Rails expert : Keeping the databse clean
Ask a Rails expert : How to redirect single app to 2 different URLs
Ask a Rails expert : Dealing with nested models