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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coding html inside of xml

Status
Not open for further replies.

spook007

Programmer
May 22, 2002
259
0
0
US
I've got a ColdFusion template that places an html link inside of a xml file. I'm receiving the following error.

Next character must be ";" terminating reference to entity "timekeep".

The xml file that is created looks like this.

<user name = "test">
<menu title="File Manager">
<options url = " 1</options>
</menu>
</user>

The problem arises because of the & sign seperating date & timekeep. How can I include the url inside the xml file?
 
Still causes the same problem... Just having the amper sand sign there causes parsing errors.
 
spook-

try encoding the url

Code:
<user name = "test">
  <menu title="File Manager">
    <options url = "[URL unfurl="true"]http://www.aes.local/report.cfm?date=04/28/04%26timekeep=chad">Report[/URL] 1</options>
  </menu>
</user>

also, this web site can also help:

if you don't want to hand encode, check coldfusion for an encoding function, or quickly do up one.

- mb
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top