Hi, On Mon, 2009-10-05 at 23:26 -0700, saxosurfin wrote: > Hi > > I have posted an XML list to a rails controller from a flex client > along the lines of > <itemList> > <item id="1" title="title one" value="6" /> > <item id="5" title="title five " value="2" /> > <item id="7" title="title blah blah" value="7" /> > </itemList> > > The itemList is a parmeter passed to the controller, what I would like > to know is how I process the itemList as an XML entity. What I want to > do is loop through the items, find the object for the id and update > the value attribute based on the value from the XML list. > > Is there an example around of doing a similar thing or if someone can > provide an answer I would much appreciate it.
Check out Hpricot and REXml. Google for examples. Come back with specific questions if you have problems. HTH, Bill --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

