From: cfis Date: 2008-07-15T08:57:34+09:00 Subject: Re: Do we "own" XML namespace? Some thoughts... > > > LibXML::XML::Document.new > > > since one can always do > > > include LibXML So I didn't actually do that. Instead, I moved LibXML into a new LibXML module. So: LibXML::Document.new Then for backwards compatibility in libxml.rb: module XML include LibXML end I prefer this approach because having to type in LibXML::XML constantly would be annoying (sure you could do an include, but that would also be annoying). Since we're making this change, let's make sure that future usage of the API is a pleasant as possible. > I like this one - it lets you use the XML namespace without > monopolising it. It also allows someone writing a drop-in replacement > for LibXML to use the same trick and have code switch effortlessly > between the two. Right - and that should still work exactly the same. You'd have to either uncomment out the libxml require code (true for both approaches), or remove the XML module and replace it with your own (also true for both approaches). Charlie