Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Rexml Quoting control
Pito Salas
2/11/2009 10:03:00 PM
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:
>> x = Element.new("Outline")
>> x.add_attribute("text", "Ellen's house")
>> x.add_attribute("Url", "
http://www.google...
)
>> x
=> <Outline Url='
http://www.googl...
text='Ellen'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!
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Rexml Quoting control
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password