Tuesday, March 13, 2012

siteMapNode Question

I am trying to create a siteMapNode:
<siteMapNode title="Finance & Admin"

However, it doesn't like the "&" in the string. Do I have to use some
escape sequence to make it work?Replace "&" with the "&" escape sequence.

"&" is one of 5 illegal characters in XML.

The other 4 illegal characters are : < , > , ' , and " .

( Less than, greater than, apostrophe and quotation mark. )

They must all be escaped if included in XML files.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espaol : http://asp.net.do/foros/
===================================
"Leo" <news-account@.cox.net> wrote in message news:%23ueaL$VdGHA.1264@.TK2MSFTNGP05.phx.gbl...
>I am trying to create a siteMapNode:
> <siteMapNode title="Finance & Admin"
> However, it doesn't like the "&" in the string. Do I have to use some
> escape sequence to make it work?

0 comments:

Post a Comment