Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

using URLs in xml

Status
Not open for further replies.

MrTom

Programmer
Mar 13, 2001
383
GB
if i have a url containing "&" "=" and other weird characters, how do i put this into xml?
i just want
<url>
by just having them how they appear, my parser (Sablot) complains of an &quot;invalid token&quot;.
is there a special way to handle known types like a url or a way to stop the xml parser parsing the url segment and instead just reading it as raw data. i've seen something about &quot;CDATA&quot; or whatever but all that &quot;<!ELEMENT>&quot; crap looks like a very bad hack on top of xml as a language.
 
Replacing & with '& amp ;' should do the trick.

(remove the spaces, this forum replaces it with & automatically without them)

:eek:)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top