Representing '&' in URLs

Dan Brickley Daniel.Brickley at
Fri Jan 22 18:42:32 GMT 1999

Hopefully a simple but not too simple query...

Can anyone point me to a best practice note on representing URLs that
contain '&' in XML? 

eg. <ABC DEF="http://abc.def/cgi-bin/"/>

where we don't want & to generate an error through looking like a broken
XML entity. (Not sure how this was ever allowed in HTML in the first
place, but that's another story...)

I did find a thread at
but that was a while back. Is...
  <ABC DEF="http://abc.def/cgi-bin/;query=bar"/>

the thing to do?


xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at
Archived as:
To (un)subscribe, mailto:majordomo at the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at

More information about the Xml-dev mailing list