From: Brian Candler Date: 2010-05-01T05:32:54+09:00 Subject: Re: Inverse of stream parser > Would you care to use JRuby? I don't mind which stream parser, but Java is out :-) Since this is a bit of disposable code, I've decided to cheat. I pretty-print the XML, then I can read it line-at-a-time using gets into a buffer, identify a range of lines which forms a chunk, then parse the buffer. On error I write out the buffer again. Thanks for all your suggestions. -- Posted via http://www.ruby-forum.com/.