# File lib/facets/more/rexmlbuilder.rb, line 180
  def document( options={} )
    #@options = options
    doc = REXML::Document.new
    # xml declaration
    if options[:version]
      doc << xml(
        options[:version],
        options[:encoding],
        options[:standalone]
      )
    end
    doc
  end