From: Raimon Fs on 19 Jun 2010 09:52 Hi, Is it possible to NOT encode or escape some chars in Builder ? code: ---------------- require 'rubygems' require 'builder' builder = Builder::XmlMarkup.new(:target=>STDOUT, :indent=>2) builder.instruct! builder.person { |b| b.name("Jim Fernández"); b.phone("555-1234") } output: ---------------- <?xml version="1.0" encoding="UTF-8"?> <person> <name>Jim Fernández</name> <phone>555-1234</phone> </person> I want: ----------------- <?xml version="1.0" encoding="UTF-8"?> <person> <name>Jim Fernández</name> <phone>555-1234</phone> </person> thanks! m. -- Posted via http://www.ruby-forum.com/.
|
Pages: 1 Prev: MAKE UPTO $5000 PER MONTH! $2000 IN FIRST 30 DAYS! Next: General Ruby OOP question |