Lloyd Linklater wrote: > > Run it in windows? :) > > But seriously, 20k lines of XML should not take that much memory unless > the lines are HUGE. How about a simplistic approach? I know that this > is not intensively RUBY but it may help. > > What if you were to launch it in a browser? They display XML files in > formatted fashion which means that they must parse them. You could then > parse through the resulting page and see if there is an error message > therein. Just a text search for "XML Parsing Error" and that should > tell you if it worked. Thats a very fair point actually, if it runs in the browser, it must be parsable. Its actually 32,606 lines! Firefox used 500mb of RAM to open it, so in theory, libxml-ruby should be able to use less i would have thought? Unless its DOM methodology is just a lot more memory intensive? What are peoples thoughts? Is it crazy trying to ask libxml to read that much into memory? Cheers Tim -- Posted via http://www.ruby-forum.com/.