ampersand in string

G

Guest

I have a web.config key as follows:
<add key="DOC_TRAILER" value="&Lib=whatever&File=.pdf&Frameset=Created" />
but I cant run the app with this string. Problems with &
I tried putting @ at beginning but that didnt fix it.
What am I missing?
 
T

tom.pesterDeLeTeTHISSS

You are editing and XML file and the ampersand "&" on its own is an illegal
charachter.

from http://groups-beta.google.com/group...q=ampersand+xml&rnum=4&hl=en#d24c6f41eb253e25
:

A single ampersand is always the beginning of an entity reference.
To express the character '&' you have to use &amp; in the XML.
(The parser expects a 'Name' after the &, that's the reason for the
somewhat strange error message.)

Let me know if you have any more questions..

Cheers,
Tom Pester
 

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
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top