From: Peter Szinek Date: 2006-12-06T21:38:00+09:00 Subject: Re: Newbie: working with a text file and converting to xml Hi, > > However it only outputs the first line from my txt file: > --------------------------------------------------- > > 00:00:30:13Swayambhunath Temple: > building started 460AD > 00:00:42:21 > --------------------------------------------------- Hmm strange. I have cut'n'pasted this code and the data from your previous mail and for me it works perfectly (as all other Paul's solutions). Are you sure your input txt file is OK? Are you on Mac? Maybe there can be something with the line breaks? > Apologies for my newbieness! No need to apologize. In no time, *you* will be answering other's questions :) Peter __ http://www.rubyrailways.com