method

next_element

v1_9_1_378 - Show latest stable - Class: REXML::Element
next_element()
public

Returns the next sibling that is an element, or nil if there is no Element sibling after this one doc = Document.new ‘<a>text<c/>’ doc.root.elements[‘b’].next_element #-> <c/> doc.root.elements[‘c’].next_element #-> nil