[Rails] Re: XML Builder - xml header...

sergio ruiz
2006-07-03T17:22:49Z

>> xml = Builder::XmlMarkup.new
>
> I think this is your culprit. Usually you don''t need to create a
> builder explicitly.

i just tried it without that line, and i still get the header..

here is the code i just tried:

xml.loginData do
    @lastLogins.each do |login|
      xml.entry do
        xml.user(login.user)
        xml.timestamp(login.timestamp)
      end
    end
end

<?xml version = "1.0"?>   <- this header was included...

--
Posted via http://www.ruby-forum.com/.