equal sign in value portion of xml tag

johndesp

Usenet Archive
Joined
Jan 19, 2004
Messages
16
Reaction score
0
I am building an xml document to represent a url request. Some urls contain d equal signs appended to the url. Its important I preserve the equal sign in hte xml document. However, my parser is giving me errors when attempting to parse this document.

<url>http://www.whatever.com/techexec/techout.nsf/home.htm?openform&login=1</url>

How can I use an equal sign in value part of an element as original text?

thanks
 

Martin Honnen

Usenet Archive
Joined
Apr 8, 2000
Messages
6,174
Reaction score
0
johndesp said:
I am building an xml document to represent a url request. Some urls contain d equal signs appended to the url. Its important I preserve the equal sign in hte xml document. However, my parser is giving me errors when attempting to parse this document.

<url>http://www.whatever.com/techexec/techout.nsf/home.htm?openform&login=1</url>

How can I use an equal sign in value part of an element as original text?

I don't think it is the = sign, it is the ampersand &, you need to escape that in XML as &amp; It shouldn't hurt you if you transform the <url>...</url> element to some HTML <a href="...">
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
548,042
Messages
3,104,223
Members
248,131
Latest member
Tonypshaw1

Latest Threads

Top