It doesn&#39;t seem like there would be such a stark difference in functionality across minor versions of libxml, but I suppose it&#39;s not out of the question.  Also check that the version you see in /usr/lib is actually the version that lxml is loading, and that the compilation versions match the runtime versions:<br>
<font style="font-family: courier new,monospace;" size="2"><br></font><pre><font style="font-family: courier new,monospace;" size="2">from lxml import etree<br><br>print &quot;lxml.etree:       &quot;, etree.LXML_VERSION<br>
print &quot;libxml used:      &quot;, etree.LIBXML_VERSION<br>print &quot;libxml compiled:  &quot;, etree.LIBXML_COMPILED_VERSION<br>print &quot;libxslt used:     &quot;, etree.LIBXSLT_VERSION<br>print &quot;libxslt compiled: &quot;, etree.LIBXSLT_COMPILED_VERSION</font><br>
</pre>On my workstation the above script outputs:<br><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">ted@gonzo:~$ python lxml_versions.py </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">lxml.etree:        (2, 1, 2, 0)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">libxml used:       (2, 7, 2)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">libxml compiled:   (2, 7, 2)</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">libxslt used:      (1, 1, 22)</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">libxslt compiled:  (1, 1, 22</span>)<br><br style="font-family: times new roman,serif;"><span style="font-family: times new roman,serif;">Ted</span><br><br><div class="gmail_quote">
On Fri, Jun 19, 2009 at 11:35 AM, Sergio Monteiro Basto <span dir="ltr">&lt;<a href="mailto:sergio@sergiomb.no-ip.org">sergio@sergiomb.no-ip.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On Fri, 2009-06-19 at 10:40 -0700, Ted Dziuba wrote:<br>
&gt; Are your versions of libxml and libxslt the same?<br>
</div>libxml no<br>
/usr/lib/libxml2.so.2.7.3<br>
/usr/lib/libxml2.so.2.6.32<br>
<br>
but libxslt yes<br>
/usr/lib/libxslt.so.1.1.24<br>
/usr/lib/libxslt.so.1.1.24<br>
<div><div></div><div class="h5"><br>
<br>
&gt;<br>
&gt; Ted<br>
&gt;<br>
&gt; On Fri, Jun 19, 2009 at 10:21 AM, Sergio Monteiro Basto<br>
&gt; &lt;<a href="mailto:sergio@sergiomb.no-ip.org">sergio@sergiomb.no-ip.org</a>&gt; wrote:<br>
&gt;         Hi,<br>
&gt;         I had install python lxml-2.2.1 on both machines<br>
&gt;<br>
&gt;         $ python testing.py on fedora [&#39;nuevologo.jpg&#39;,<br>
&gt;         &#39;<a href="http://www.google.com/logos/Logo_25wht.gif" target="_blank">http://www.google.com/logos/Logo_25wht.gif</a>&#39;,<br>
&gt;         &#39;secciones/movil/promo.gif&#39;, &#39;img-noticias/AAA_279.JPG&#39;,<br>
&gt;         &#39;img-noticias/bresuc_508.jpg&#39;,<br>
&gt;         &#39;img-noticias/nacional_116.JPG&#39;,<br>
&gt;         &#39;img-noticias/CONOMI1_84.JPG&#39;,<br>
&gt;         &#39;<a href="http://www.tutiempo.net/imagenes_asociados/84x38/SVVG.png" target="_blank">http://www.tutiempo.net/imagenes_asociados/84x38/SVVG.png</a>&#39;,<br>
&gt;         &#39;../web/webfisico/paginas/01_220.jpg&#39;, &#39;digitales.jpg&#39;,<br>
&gt;         &#39;bannermi.gif&#39;,<br>
&gt;         &#39;<a href="http://pikis.net/banner/pikis_banner1_3.jpg" target="_blank">http://pikis.net/banner/pikis_banner1_3.jpg</a>&#39;]<br>
&gt;<br>
&gt;         on debian<br>
&gt;         $ python testing.py<br>
&gt;         [&#39;nuevologo.jpg&#39;,<br>
&gt;         &#39;<a href="http://www.google.com/logos/Logo_25wht.gif" target="_blank">http://www.google.com/logos/Logo_25wht.gif</a>&#39;]<br>
&gt;<br>
&gt;         Note: the page have a double &lt;html&gt;&lt;/html&gt;<br>
&gt;         on fedora the two html are consider<br>
&gt;         on debian no .<br>
&gt;         but I need this works on debian<br>
&gt;<br>
&gt;         What could I do ?<br>
&gt;<br>
&gt;         --<br>
&gt;         Sérgio M. B.<br>
&gt;<br>
&gt;<br>
&gt;         _______________________________________________<br>
&gt;         lxml-dev mailing list<br>
&gt;         <a href="mailto:lxml-dev@codespeak.net">lxml-dev@codespeak.net</a><br>
&gt;         <a href="http://codespeak.net/mailman/listinfo/lxml-dev" target="_blank">http://codespeak.net/mailman/listinfo/lxml-dev</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Ted Dziuba<br>
&gt; Co-Founder and Engineer<br>
&gt;<br>
&gt; Milo.com, Inc.<br>
&gt; 165 University Avenue<br>
&gt; Palo Alto, CA, 94301<br>
&gt; <a href="http://milo.com" target="_blank">http://milo.com</a><br>
&gt;<br>
&gt; Cell: (609)-665-2639<br>
&gt;<br>
</div></div><font color="#888888">--<br>
Sérgio M. B.<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Ted Dziuba<br>Co-Founder and Engineer<br><br>Milo.com, Inc.<br>165 University Avenue<br>Palo Alto, CA, 94301<br><a href="http://milo.com">http://milo.com</a><br><br>
Cell: (609)-665-2639<br><br>