Ruby & XML

P

patrick divan

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....
 
P

patrick divan

Thanks but no,
the "{" makes carriage return

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,417
Latest member
DarrenGaun

Latest Threads

Top