On Jul 13, 3:39 pm, "Aaron Patterson" <[EMAIL PROTECTED]> wrote: > On Sun, Jul 13, 2008 at 4:00 AM, Trans <[EMAIL PROTECTED]> wrote: > > > On Jul 13, 12:36 am, Charlie Savage <[EMAIL PROTECTED]> wrote: > >> Moving to new thread... > > >> > No not lib/xml/, that's were we had been. we need the code under lib/ > >> > libxml/. the xml/ directory is there only for backward compatibility. > > >> So is this what you are proposing? > > >> lib > >> libxml.rb > >> libxml > >> attributes.rb > >> attr.rb > >> <plus other ruby files> > > >> Meaning libxml.rb would look like this: > > >> require 'libxml_ruby' > >> require 'libxml/attributes' > >> <etc> > > > Yep. See... > > >http://groups.google.com/group/libxml-devel/browse_thread/thread/2b87... > > > As Dan said in another thread too, we can set > > > XML = LibXML > > > for compatibility. > > The top level constant doesn't really matter to me. As long as we do > like you said, and make sure to set the XML constant for > compatibility.
If there are no objections I can go ahead and make these adjustments. > A couple things I would like are: 1) each ruby class in its own file, > and 2) each class under a directory corresponding to its module/class. > > For example, the class LibXML::Node::Set would live as > "lib/libxml/node/set.rb". The LibXML::Node class would live as > "lib/libxml/node.rb", and 'require' any classes that are defined in > its namespace. > > In my experience, that has made finding classes easy and fairly intuitive. Works for me, but I'll leave this to others (unless no one else wants to do it). T. _______________________________________________ libxml-devel mailing list libxml-devel@rubyforge.org http://rubyforge.org/mailman/listinfo/libxml-devel