Hunter Walker wrote: > Hi all, > > I would like to process the xml in the url below, but I am unsure how. > I've always had APIs to help me out before, so this is new. > > http://clinicaltrials.gov/show/NCT00001372?displayxml=true > > I want to get this xml in an object that I can then parse and extract > the portions I need. > > Thank you for your help, as always. Use open-uri to fetch the XML, then load it into a REXML::Document object. Then use REXML's XPath to grab what you need. http://www.ruby-doc.org/stdlib/libdoc/open-uri/rdoc/ http://www.ruby-doc.org/stdlib/libdoc/rexml/rdoc/index.html -- James Britt http://www.ruby-doc.org - Ruby Help & Documentation http://www.artima.com/rubycs/ - The Journal By & For Rubyists http://www.rubystuff.com - The Ruby Store for Ruby Stuff http://www.jamesbritt.com - Playing with Better Toys http://www.30secondrule.com - Building Better Tools