= private = protected
document()
Evaluates to the document to which this element belongs, or nil if this element doesn’t belong to a document.
# File lib/rexml/element.rb, line 131 def document rt = root rt.parent if rt end