Re: [libxml-devel] XML in Ruby

2006-04-27 Thread Ross Bamford
On Wed, 12 Apr 2006 13:12:40 +0100, Rajesh Kumar <[EMAIL PROTECTED]> wrote: > Dear Sir, > Can I have a step-by-step tutorial for coding a XML file in ruby? > Sure, as soon as we've got one :) About the best examples we have right now are in the docs: http://libxml.rubyforge.org/doc/fi

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. >