Rexml Quoting control

P

Pito Salas

I'm generating a xml with Rexml. Pretty straightforward. I have a
question about quoting.

I would like this result (for example)

<outline type="rss" text="Ellen's House" Url="http://www.google.com"/>

But when I do the obvious:
=> <Outline Url='http://www.google.com' text='Ellen&apos;s house'/>

Note the quoting is using single quotes and & escapes. What I showed at
the top is also valid xml. How do I ask rexml to generate it?

If you know and can help it would be greatly appreciated!
 

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

Similar Threads


Members online

No members online now.

Forum statistics

Threads
473,781
Messages
2,569,615
Members
45,295
Latest member
EmilG1510

Latest Threads

Top