From: Robert Klemme Date: 2013-06-16T23:38:17+09:00 Subject: Re: NokoGiri XML Parser --089e0149ccde28631304df466e00 Content-Type: text/plain; charset=ISO-8859-1 On Sun, Jun 16, 2013 at 4:35 PM, Robert Klemme wrote: > dom.xpath('//c').each do |c_node| > parent = c_node.at_xpath 'ancestor::c' > Correction parent = c_node.at_xpath('ancestor::c[1]') Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/ --089e0149ccde28631304df466e00 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable



On Sun, Jun 16, 2013 at 4:35 PM, Robert Klemme= <shortcutter@googlemail.com> wrote:
=A0
=
dom.xpath('//c').each do |c_node|
= =A0 parent =3D c_node.at_xpath 'ancestor::c'

Correction
=A0 parent =3D c_node.at_xpath('ancestor::c[1]')

Cheers

r= obert

--
remember.guy do |as, often| as.you_c= an - without end
http://blog.rubybestpractice= s.com/
--089e0149ccde28631304df466e00--