[XML-SIG] well-formed xml

Matt Gushee Matt Gushee <mgushee@havenrock.com>
Thu, 26 Sep 2002 18:21:22 -0600


On Thu, Sep 26, 2002 at 07:08:48PM -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>"
>   #                                             ^
>   #                                             - seems to be the problem
>   #
>   # maybe it thinks I'm trying to reference the &q entity?

Yep. You need to escape that ampersand: ...?hl=en&amp;q=...

-- 
Matt Gushee
Englewood, Colorado, USA
mgushee@havenrock.com
http://www.havenrock.com/