James Britt
1/1/2007 6:43:00 PM
>>
>> src_dom/'//item'.each do |el|
>> title = (item/'title').text
>> title_url = (item/'title_url').text
>> # ...
>> # Now build the new item element for the target XML
>> # and add it to the accumulating content
>> end
>
> Thanks... it's working so far, but I had to use this syntax:
>
> title = (el/'title').text
>
Ah, good catch. Bug in my example code.
--
James Britt
"I have the uncomfortable feeling that others are making a religion
out of it, as if the conceptual problems of programming could be
solved by a single trick, by a simple form of coding discipline!"
- Edsger Dijkstra