Cayce Balara
2006-Oct-09 03:34 UTC
Parse with XML Builder, or use something else (like REXML)?
I''ve been using XML Builder successfully to create XML documents from scratch. I now have to parse out a response document and am not sure if Builder has some function to assist in this (which is the reverse of what I''ve been doing), or if I should use REXML, or even some other lib. REXML looks to do what I want, but I''m confused as to how it relates to Builder, and/or vice-versa, or if at all. Thanks. c. -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Jeffrey Hardy
2006-Oct-09 04:31 UTC
Re: Parse with XML Builder, or use something else (like REXML)?
> I now have to parse out a response document and am not sure if > Builder has some function to assist in this (which is the reverse of > what I''ve been doing), or if I should use REXML, or even some other > lib. > REXML looks to do what I want, but I''m confused as to how it > relates to > Builder, and/or vice-versa, or if at all.Builder and REXML aren''t related. That said, REXML is just the ticket for parsing XML. XmlSimple is also good, and I actually prefer it in some ways. This Yahoo! article actually has a good overview of parsing XML in Ruby with examples using both REXML and XmlSimple, so you can compare the differences in flavour. http://developer.yahoo.com/ruby/ruby-xml.html -- Jeffrey Hardy (packagethief) http://unspace.ca http://re.visioni.st http://quotedprintable.com --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Cayce Balara
2006-Oct-09 12:37 UTC
Re: Parse with XML Builder, or use something else (like REXM
THANKS! That''s just the ticket... c. Jeffrey Hardy wrote:>> I now have to parse out a response document and am not sure if >> Builder has some function to assist in this (which is the reverse of >> what I''ve been doing), or if I should use REXML, or even some other >> lib. >> REXML looks to do what I want, but I''m confused as to how it >> relates to >> Builder, and/or vice-versa, or if at all. > > Builder and REXML aren''t related. > > That said, REXML is just the ticket for parsing XML. XmlSimple is > also good, and I actually prefer it in some ways. > > This Yahoo! article actually has a good overview of parsing XML in > Ruby with examples using both REXML and XmlSimple, so you can compare > the differences in flavour. > > http://developer.yahoo.com/ruby/ruby-xml.html > > -- > Jeffrey Hardy (packagethief) > http://unspace.ca > http://re.visioni.st > http://quotedprintable.com-- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---