R
Raimon Fs
Hi,
Is it possible to NOT encode or escape some chars in Builder ?
code:
----------------
require 'rubygems'
require 'builder'
builder = Builder::XmlMarkup.newtarget=>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.
Is it possible to NOT encode or escape some chars in Builder ?
code:
----------------
require 'rubygems'
require 'builder'
builder = Builder::XmlMarkup.newtarget=>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.