From: Sean Russell Date: 2001-11-14T12:32:43+09:00 Subject: [ruby-talk:25148] Re: XML support in the standard lib; what exactly? Jim Menard wrote: > NQXML reads the file into a string and parses the string. I fooled around > with using a stream (an IO) once, but there was too much mess remembering > where I was in the stream, going back, needing to re-read the IO stream, > etc. that I decided it wasn't worth the bother. > > Maybe it is. Jim, Grab REXML and check out source.rb. You might be able to use it, especially IOSource. IOSource reads in 100 bytes at a time and checks it to see if it's "enough"; if it isn't, it reads in 100 bytes more. I've optimized it as much as I can. It probably isn't as fast as slurping the whole file, but it is easier on the memory. Anyway, if you can use it, do. --- SER -----= Posted via Newsfeeds.Com, Uncensored Usenet News =----- http://www.newsfeeds.com - The #1 Newsgroup Service in the World! Check out our new Unlimited Server. No Download or Time Limits! -----== Over 80,000 Newsgroups - 19 Different Servers! ==-----