By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,640 Members | 1,581 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,640 IT Pros & Developers. It's quick & easy.

ampersand in string

P: n/a
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?
Nov 19 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

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

from http://groups-beta.google.com/group/...4c6f41eb253e25
:

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
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?

Nov 19 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.