[XML-SIG] well-formed xml

Mike Rovner mike at bindkey.com
Fri Sep 27 21:20:12 CEST 2002


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 at web.de> wrote in message
news:E17uppg-0007LF-00 at 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.








More information about the Python-list mailing list