Bertram Scharpf wrote:
> Hi,
> 
> Am Mittwoch, 22. Jul 2009, 17:43:09 +0900 schrieb Adam Lorens:
>> xmlfile = File.new("movies.xml")
>> xmldoc = Document.new(xmlfile)
>> 
>> # This will output all the movie titles.
>> xmldoc.elements.each("collection"){
>>    |e| puts e.attributes["title"]
>> }
> 
> Did you try "xmldoc.root.elements.each( ..."?
>                     ^^^^^
> 
> Bertram

Hi,

I try Your proposition, but it also doesn't work, because SciTe only 
says:
"Root element: New arrivals"( I want more information which is on 
XML).My new XML is in attachment.

regards
Adam


Attachments:
http://www.ruby-forum.com/attachment/3893/movies.rb

-- 
Posted via http://www.ruby-forum.com/.