Hi,

I've today committed changesets including Mark Van Holstyn's patches, an  
additional patch I received from Tim Yamin, and a few small fixups and  
extra tests. These fix bugs in XML::Node#content, and add several  
convenience methods to Node and Node::Set as previously discussed, as well  
as defining node equality based on the XML representation.

I am now considering implementing callback procs for the SAX parser, and  
would appreciate any ideas anyone might have. Currently I'm looking at two  
choices:

        1) Having methods for each callback supported by libxml, which
           work like set_trace_func:

                saxparser.set_begin_document(lambda { |...| })
                saxparser.set_begin_element(lambda { |...| })
                # ...

        2) Introducing a new class (maybe XML::SaxParser::Callbacks?)
           that provides the above API, and then having e.g.:

                saxparser.set_callbacks(the_callbacks)

           This could also have an alternate API, e.g:

                the_callbacks[:begin_document] = lambda { |...| }
                the_callbacks[:begin_element] = lambda { |...| }

I'm just wondering which (if either - if not, then what) people think we  
should do.

-- 
Ross Bamford - [EMAIL PROTECTED]
_______________________________________________
libxml-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to