user384070
user384070

Reputation: 81

ruby on rails create a custom xml

Hi can i create a custom XML after filling a form in Ruby on rails view template.

Once i m done with capturing data i dono how to create an XML?

Could anyone help

What is exactly rxml and can I use it ?

Upvotes: 0

Views: 1194

Answers (1)

Daniel O'Hara
Daniel O'Hara

Reputation: 13438

Try Builder to generate your XML:

require "builder"

@xml = Builder::XmlMarkup.new
@xml.intruct!
@xml.mydoc do
    @xml.property "Data"
end

Upvotes: 1

Related Questions