[XML-SIG] well-formed xml

Mike Rovner mike@bindkey.com
Fri, 27 Sep 2002 12:20:12 -0700


IIRC, double quotes are the must:
s = '<a href="http://google.com/search?hl=en&amp;q=foobar">search</a>'

Cheers,
Mike

"Juergen Hermann" <jh@web.de> wrote in message
news:E17uppg-0007LF-00@smtp.web.de...
On Thu, 26 Sep 2002 19:08:48 -0500, Mark McEahern wrote:

>I'm obviously missing something because this seemingly innocent chunk of
>xhtml:
>
>  from xml.dom import minidom
>
>  s = "<a href='http://google.com/search?hl=en&q=foobar'>search</a>"

This is not well-formed and thus not XHTML.

... en&amp;q= ...

is the correct form.