xml4r/libxml-ruby — pull request #51 by julp (2013-01-19 18:53:35+00:00)
Title: Improve namespace support for XMLReader

It appears that some methods are missing to handle namespaces with XML::Reader. Here is my suggestion:

Methods added:
* Reader::move_to_attribute_no(index): move internal cursor on the attribute
specified by its position
* Reader::move_to_attribute_ns(localName, namespaceURI): move internal
cursor on the attribute specified by its name and namespace
* Reader::get_attribute_no(index): get the value of the attribute specified
by its position
* Reader::get_attribute(name): get the value of the attribute specified by
its name
* Reader::get_attribute_ns(localName, namespaceURI): get the value of the
attribute specified by its name and namespace

Methods affected:
* Reader::move_to_attribute(name): position (name as Fixnum) is no longer
supported (use move_to_attribute_no instead)

Note:
* Reader::[] is not modified (index or name can still be used)