well-formed xml

Дамјан Г. пенгуиниста at маил?=.=?iso-8859-5?Q?нет?=.=?iso-8859-5?Q?мк
Fri Sep 27 14:52:41 EDT 2002


>   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?

In XML the & character must be encoded as &



-- 
Дамјан

               Speak softly and carry a cellular phone.




More information about the Python-list mailing list