Ruby & XML

Hello

xml {} produce carriage return

Exemple : xml.id { xml.cdata!(1)}
=>
<id>
<![CDATA[1]]>
</id>

···

#################################
BUT i need:

<id><![CDATA[1]]></id> ( without carriage return )

Any idea how to make that ?
I am stuck....
--
Posted via http://www.ruby-forum.com/.

<id><![CDATA[1]]></id> ( without carriage return )

Any idea how to make that ?
I am stuck....

.strip?
-rp

···

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

Thanks but no,
the "{" makes carriage return

As far as i know, this can not be stringify and stripped.

···

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