class Builder::XmlMarkup

def _insert_attributes(attrs, order=[])

Insert the attributes (given in the hash).
def _insert_attributes(attrs, order=[])
  return if attrs.nil?
  order.each do |k|
    v = attrs[k]
    @target << %{ #{k}=#{@quote}#{_attr_value(v)}#{@quote}} if v
  end
  attrs.each do |k, v|
    @target << %{ #{k}=#{@quote}#{_attr_value(v)}#{@quote}} unless order.member?(k) # " WART
  end
end