lmlx & & caracter

Christian Heimes lists at cheimes.de
Tue Oct 27 04:03:39 EDT 2009


Toff wrote:
> hello
> 
> i can't parse a file with lxml
> 
> 
> ================================================================
>   <?xml version="1.0" encoding="iso-8859-1" ?>
>  <packages>
>  <package id="firefox" name="FireFox 3.5" >
>   <download url="http://download.mozilla.org/?
> product=firefox-3.5&os=win&lang=fr"  />
>   </package>
>   </packages>
> =========================================================================
> 
> i know that & is a special caracter in xml

Because & has a special meaning in XML you have to quote a literal & as
&

Christian




More information about the Python-list mailing list