Connecting Tech Pros Worldwide Forums | Help | Site Map

& inside an XML

abhi sin
Guest
 
Posts: n/a
#1: Oct 21 '08


I have an XML entry, inside XML entry i am inserting a hyper link
containing &, however when I compile the XML file, my application is not
being able to correctly identify the & sign in hyper link. Is there a
way by using which i can insert hyperlink with & inside xml

*** Sent via Developersdex http://www.developersdex.com ***

Stanimir Stamenkov
Guest
 
Posts: n/a
#2: Oct 21 '08

re: & inside an XML


21 Oct 2008 00:10:04 GMT, /abhi sin/:
Quote:
I have an XML entry, inside XML entry i am inserting a hyper link
containing &, however when I compile the XML file, my application is not
being able to correctly identify the & sign in hyper link. Is there a
way by using which i can insert hyperlink with & inside xml
Seems pretty basic stuff you miss about XML,
<http://www.w3.org/TR/xml/#syntax>:
Quote:
The ampersand character (&) and the left angle bracket (<) MUST NOT
appear in their literal form, except when used as markup delimiters,
or within a comment, a processing instruction, or a CDATA section.
If they are needed elsewhere, they MUST be escaped using either
numeric character references or the strings "&amp;" and "&lt;"
respectively...
--
Stanimir
Closed Thread