On Thu, 2 Jan 2003 08:24:24 +0900,
Tom Sawyer <transami / transami.net> wrote:
> Perhps the "funny html support" should be sperated 
> into its own requirable module?

  def xml(element, attributes = {})
    content = block_given? ? yield : ''
    content = content.join('') if content.is_a?(Array)
    tag = "<" + element + " "
    attributes.each { |key, value| tag << "#{key}='#{value}' " }
    tag << "/" if content == ''
    tag << ">"
    tag << content << "</#{element}>" if content != ''
    tag
  end

what module?