Connecting Tech Pros Worldwide Help | Site Map

& inside an XML

  #1  
Old October 21st, 2008, 01:15 AM
abhi sin
Guest
 
Posts: n/a


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 ***
  #2  
Old October 21st, 2008, 07:15 AM
Stanimir Stamenkov
Guest
 
Posts: n/a

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Google Map that uses an XML file to create markers TrevRex answers 0 August 19th, 2008 10:30 PM
Special Character inside XML string data Norman Uhlenkott answers 5 November 22nd, 2005 06:55 AM
minidom xml & non ascii / unicode & files webdev answers 4 August 6th, 2005 07:25 PM
Special Character inside XML string data Norman Uhlenkott answers 4 July 21st, 2005 12:04 PM