def format_node_attributes(options)
      options.collect { |key, value|
        value = value.to_s.gsub('"', '\"')
        " #{key}=\"#{value}\""
      }.join('')
    end
def format_node_attributes(options)
      options.collect { |key, value|
        value = value.to_s.gsub('"', '\"')
        " #{key}=\"#{value}\""
      }.join('')
    end
Convert the given Hash of options into a string of XML element attributes.