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}="#{_attr_value(v)}"} if v # " WART
  end
  attrs.each do |k, v|
    @target << %{ #{k}="#{_attr_value(v)}"} unless order.member?(k) # " WART
  end
end