= private = protected
xml_decl()
@return the XMLDecl of this document; if no XMLDecl has been set, the default declaration is returned.
# File lib/rexml/document.rb, line 124 def xml_decl rv = @children[0] return rv if rv.kind_of? XMLDecl @children.unshift(XMLDecl.default)[0] end