[XML-SIG] well-formed xml

Mike Rovner mike at bindkey.com
Fri Sep 27 15:20:12 EDT 2002

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


"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
>  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&q= ...

is the correct form.

More information about the Python-list mailing list