Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #2586
| From | Ted Flethuseo <flethuseo@gmail.com> |
|---|---|
| Newsgroups | comp.lang.ruby |
| Subject | Re: Reading XML to relational tables |
| Date | 2011-04-09 16:39 -0500 |
| Organization | Service de news de lacave.net |
| Message-ID | <56aa29ce30e3b353f2096060f9e338ff@ruby-forum.com> (permalink) |
| References | <236f02bc699a9c809bdec25e00a2d0f2@ruby-forum.com> |
Hi Jesus,
Thank you for your help. Right now I am stuck trying to traverse the
elements in a single xml::element. I know I can use this elements method
to list the elements, but I am not sure how
I can traverse through them and get their contents individually.
xml = File.read('translateXML.xml')
doc = Nokogiri::XML(xml)
# split into sentences first
arr = doc.search('p')
puts arr[0].elements
--
Posted via http://www.ruby-forum.com/.
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Reading XML to relational tables Ted Flethuseo <flethuseo@gmail.com> - 2011-04-01 17:47 -0500
Re: Reading XML to relational tables Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-04-01 18:02 -0500
Re: Reading XML to relational tables Ted Flethuseo <flethuseo@gmail.com> - 2011-04-09 16:39 -0500
Re: Reading XML to relational tables Jesús Gabriel y Galán <jgabrielygalan@gmail.com> - 2011-04-11 02:56 -0500
csiph-web