Re: [libxml-devel] Closing files from XML::Document.file

2006-04-27 Thread Nicos Gollan
On Thursday April 27 2006 09:44, you wrote: > > In theory, it should not be necessary to keep a file open after the > > parser is > > done with it, right? > > [...] > > For now, here's a workaround you might try: > > doc = > File.open('/home/rosco/workspace/libxml/tests/model/rubynet.xml','r') do |

Re: [libxml-devel] Closing files from XML::Document.file

2006-04-27 Thread Ross Bamford
On Wed, 26 Apr 2006 17:29:50 +0100, Nicos Gollan <[EMAIL PROTECTED]> wrote: > Hi, > > is it intentional that XML::Document.file doesn't seem to close files? > > With mod_ruby, I'm getting a lot of open files from calls to that > method, and > I haven't found a way to close those files again. >

[libxml-devel] Closing files from XML::Document.file

2006-04-26 Thread Nicos Gollan
Hi, is it intentional that XML::Document.file doesn't seem to close files? With mod_ruby, I'm getting a lot of open files from calls to that method, and I haven't found a way to close those files again. In theory, it should not be necessary to keep a file open after the parser is done with it,