From: Milo Thurston Date: 2007-09-21T18:41:14+09:00 Subject: Re: Parse XML that isn't well formed Jano Svitok wrote:> > You should have done two things: 1. add root node (with > closing just before ) AND 2. remove the trailing > Great, thanks. That should sort out the "legacy" files, and future ones can be corrected. I have also been parsing each line with IO.foreach and /<(.+)[^>]*>(.+?)<(\/.+)>/, which though not as nice as a proper XML parser does avoid loading huge files into memory in one go. -- Posted via http://www.ruby-forum.com/.