<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel">
    <title>gmane.comp.python.lxml.devel</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6885"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6884"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6883"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6882"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6881"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6880"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6879"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6878"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6877"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6876"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6875"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6874"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6873"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6872"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6871"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6870"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6869"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6868"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6867"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6866"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6885">
    <title>Re: Possible bug in lxml.objectify</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6885</link>
    <description>&lt;pre&gt;Amaury Forgeot d'Arc, 17.06.2013 18:20:

Yes, that's a bug. Thanks!

https://github.com/lxml/lxml/commit/1c6084a1754e83c45286fe2b112d2ef327cadc67

Stefan

_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-06-17T19:12:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6884">
    <title>Possible bug in lxml.objectify</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6884</link>
    <description>&lt;pre&gt;Hi,

By doing the cffi port, I noticed this suspect line in lxml.objectify.pyx
(line 1689):

    elif c_ns.prefix is not NULL or c_ns.prefix[0] != c'\0':

It seems to me that the connector should be "and" instead, otherwise a
prefix of "" would yield a typename starting with a colon character...
I haven't tried though. But it looks like a bad negation of a similar
statement above.

&lt;/pre&gt;</description>
    <dc:creator>Amaury Forgeot d'Arc</dc:creator>
    <dc:date>2013-06-17T16:20:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6883">
    <title>Re: New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6883</link>
    <description>&lt;pre&gt;Amaury Forgeot d'Arc, 16.06.2013 22:34:

Yes, those are very delicate. The proxy module (mis)uses several CPython
internals and the whole purpose of the macros is speed. IIRC, they gave a
performance boost of about 30% over the function based implementation and
most of the places where they are used are very performance critical, often
processing an entire tree in one tight loop.



Ok. Plus, at least some parts of the Cython version could start using pure
Python syntax, which would make the reuse easier.

http://docs.cython.org/src/tutorial/pure.html

apihelpers.pxi might get in the way, though, because it contains a couple
of helper functions that need to get included in order to inline them. So
it won't easily work to normally import it in PyPy and include it in Cython
code.



I see. This should rarely be a problem in practice, but it might bite some
users quite unexpectedly. But then again, any PyPy user will have to become
aware of this difference at some point.



I guess so.



Sure. I meant that the&lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-06-17T07:15:59</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6882">
    <title>Re: New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6882</link>
    <description>&lt;pre&gt;2013/6/15 Stefan Behnel &amp;lt;stefan_ml&amp;lt; at &amp;gt;behnel.de&amp;gt;


Indeed. I meant that I did not have to change the application design: same
module names, same functions, very similar code.
Except maybe for the proxy module, and the FOR_EACH_FROM macros.



The diff between the two branches:
https://github.com/amauryfa/lxml/compare/master...cffi
shows that I added many files, but modification to existing files are small.

This means that the cffi version can coexist with the cython one.



Well, this issue is already mentioned in the lxml docs:
http://lxml.de/objectify.html#defining-additional-data-classes
"""Be aware, though, that this does not immediately apply to elements to
which there already is a Python reference. Their Python class will only be
changed after all references are gone and the Python object is garbage
collected.
"""
With a deterministic garbage collector, this is often not an issue. But
with a delayed gc, many tests fail.
For example:

    from lxml import etree
    from lxml import objectify
    parser = &lt;/pre&gt;</description>
    <dc:creator>Amaury Forgeot d'Arc</dc:creator>
    <dc:date>2013-06-16T20:34:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6881">
    <title>Re: New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6881</link>
    <description>&lt;pre&gt;2013/6/15 F Wolff &amp;lt;friedel&amp;lt; at &amp;gt;translate.org.za&amp;gt;



Oh, you need a newer version of cffi.
I did not realized that "new_handle" was not present in 2.0.2 :-(

Try with a (recent) nightly build of pypy, it has it for sure.

&lt;/pre&gt;</description>
    <dc:creator>Amaury Forgeot d'Arc</dc:creator>
    <dc:date>2013-06-16T19:37:10</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6880">
    <title>Re: New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6880</link>
    <description>&lt;pre&gt;On Fri, Jun 14, 2013 at 10:20 PM, Amaury Forgeot d'Arc
&amp;lt;amauryfa&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:


Hi Amaury. Well done on the work.

Here is the result of my first try:
Traceback (most recent call last):
  File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
  File "lxml/../lxml-cffi/etree.py", line 2859, in &amp;lt;module&amp;gt;
    from .xmlschema import XMLSchema, XMLSchemaParseError
  File "lxml/../lxml-cffi/xmlschema.py", line 34, in &amp;lt;module&amp;gt;
    namespaces={u'xs': u'http://www.w3.org/2001/XMLSchema'})
  File "lxml/../lxml-cffi/xpath.py", line 379, in __init__
    self.set_context(xpathCtxt)
  File "lxml/../lxml-cffi/xpath.py", line 155, in set_context
    self._context.set_context(xpathCtxt)
  File "lxml/../lxml-cffi/xpath.py", line 90, in set_context
    self._set_xpath_context(xpathCtxt)
  File "lxml/../lxml-cffi/extensions.py", line 111, in _set_xpath_context
    handle = xpath.ffi.new_handle(self)
AttributeError: 'FFI' object has no attribute 'new_handle'

This is with:
Mageia 2
pypy-2.0.2 built from source
lib64xml2-devel-2.7.8
lib64xslt-d&lt;/pre&gt;</description>
    <dc:creator>F Wolff</dc:creator>
    <dc:date>2013-06-15T13:43:02</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6879">
    <title>Re: New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6879</link>
    <description>&lt;pre&gt;Hi Amaury,

first of all, thank you for the effort that you put into this. I'm not
entirely happy about having a separate fork of the code base, but I'm sure
(some?) PyPy users will appreciate it.

Amaury Forgeot d'Arc, 14.06.2013 23:20:

Most of it, it seems. From what I gathered, there are at least some major
adaptations that seem to have required some thought. The transformation is
certainly nothing that could be automated.



Not sure what you mean. Which __init__.py where?



Could you explain what the problem is here? lxml.objectify is certainly
quite tightly coupled with lxml.etree, but it mainly uses standard features
of the API, mainly custom element classes.



Sure.



Is your goal to reintegrate this with mainline lxml? This will certainly
require more work. And I wouldn't be happy about the additional maintenance
overhead just to keep the additional cffi sources up-to-date.



Sounds like you'd better write a completely separate one. Most of what lxml
is doing at install time is configuring the &lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-06-15T09:24:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6878">
    <title>New version for PyPy, using cffi</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6878</link>
    <description>&lt;pre&gt;Hello,

I almost finished a port of lxml that uses cffi bindings instead of Cython.
The goal is to run it with PyPy, which support for the CPython API is known
to be very slow and somewhat incomplete.
cffi on the other hand is much more friendly to PyPy's JIT.

The code is there: https://github.com/amauryfa/lxml in the "cffi" branch.
Note that it works directly from the source tree, no need to compile.
You have to use a recent PyPy, ensure that the "lxml" directory can be seen
from your PYTHONPATH, and that you have libxml development packages.

The conversion -- from .pyx files to pure Python -- turned out to be quite
straightforward. And the result is interesting IMO:

- Impact on the existing code is minimal (in __init__.py), of course there
is a lot of duplication.

- Only 5 tests fail in the whole suite (if you except objectify, which is
hard to support correctly on a non-refcounting gc)

- Performance is on par with the version installed on my laptop, except
from some catastrophic benchmarks, probably &lt;/pre&gt;</description>
    <dc:creator>Amaury Forgeot d'Arc</dc:creator>
    <dc:date>2013-06-14T21:20:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6877">
    <title>Re: etree.XML() nsmap gives partial namespace</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6877</link>
    <description>&lt;pre&gt;Sangeeth Saravanaraj, 03.06.2013 16:34:

Does this help?

http://lxml.de/FAQ.html#how-can-i-find-out-which-namespace-prefixes-are-used-in-a-document

Stefan

_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-06-03T16:06:32</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6876">
    <title>etree.XML() nsmap gives partial namespace</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6876</link>
    <description>&lt;pre&gt;I am using nsmap on etree.XML() to get the list of all the namespaces used
in a given xml document. The following code i.e. &amp;lt;code-1&amp;gt; works fine which
gives the expected output i.e. &amp;lt;output-1&amp;gt;. The nsmap contains all the
namespace that are used in the document.

One point to note here is - all the xml namespaces used in this document
has been highlighted in the root element itself.

&amp;lt;code-1&amp;gt;
from lxml import etree

xml_str_1 = '''&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;ns0:root xmlns:ns0="http://thisisroot.com/rootelem/" xmlns:ns1="
http://thisischild.com/childelem1/" xmlns:ns2="
http://thisischild.com/childelem2/" xmlns:ns3="
http://thisischild.com/childelem3/" xmlns:ns4="
http://thisischild.com/childelem4/"&amp;gt;
  &amp;lt;ns1:child1&amp;gt;child1&amp;lt;/ns1:child1&amp;gt;
  &amp;lt;ns2:child2&amp;gt;child2&amp;lt;/ns2:child2&amp;gt;
  &amp;lt;ns3:child3&amp;gt;child3&amp;lt;/ns3:child3&amp;gt;
  &amp;lt;ns4:child4&amp;gt;child4&amp;lt;/ns4:child4&amp;gt;
&amp;lt;/ns0:root&amp;gt;'''

xml_1 = etree.XML(xml_str_1)
ns_1 = xml_1.nsmap

print "xml document = ", xml_str_1
print "namespace    = ", ns_1
&amp;lt;/code-1&amp;gt;

&amp;lt;output-1&amp;gt;
xml document =  &lt;/pre&gt;</description>
    <dc:creator>Sangeeth Saravanaraj</dc:creator>
    <dc:date>2013-06-03T14:34:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6875">
    <title>attributes() in DTD - possible bug()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6875</link>
    <description>&lt;pre&gt;Hello,
I'm trying to iterate over all attributes in DTD. Here is a log from REPL:
http://pastebin.com/qfSqYjCB
attributes() is empty when using DTD from internalDTD, but they are
definitely used (default values for attributes are properly set). Also,
when using etree.DTD attributes are properly listed.
Is this a bug or there is something that I have missed?

P.S.: externalDTD is empty, this seems right to me.

Nikolay Amiantov.
_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Nikolay Amiantov</dc:creator>
    <dc:date>2013-06-03T11:34:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6874">
    <title>attributes() in DTD - possible bug?</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6874</link>
    <description>&lt;pre&gt;Hello,
I'm trying to iterate over all attributes in DTD. Here is a log from REPL:
http://pastebin.com/qfSqYjCB
attributes() is empty when using DTD from internalDTD, but they are
definitely used (default values for attributes are properly set). Also,
when using etree.DTD attributes are properly listed.
Is this a bug or there is something that I have missed?

P.S.: externalDTD is empty, and this seems right to me.
_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Nikolay Amiantov</dc:creator>
    <dc:date>2013-06-03T11:27:57</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6873">
    <title>Re: Changing encoding while parsing an HTML string</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6873</link>
    <description>&lt;pre&gt;Michael O'Leary, 24.05.2013 21:22:

It's an XML parser, so, yes, it does.



The latter is the normal way of doing it in HTML.



Yes, it does.



It should do it automatically if it can, defaulting to Latin-1 if there is
no content-type meta tag that specifies the encoding. If you know the
encoding in advance for some reason, you can configure an HTMLParser with
it and pass it into the parse() function (for example). If you have
different encodings in your files, use differently configured parsers.

You cannot change the encoding once the parser has started parsing. If you
feel like changing it along the way, I suggest you just start over.

You might also want to consider using iterparse() instead of passing a
target object into the parser. It has less overhead.

Stefan

_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-06-02T07:04:28</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6872">
    <title>Re: lxml object architecture quandary</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6872</link>
    <description>&lt;pre&gt;Thanks for the reply, Holger!  Actually it did occur to me over
the weekend that inheritance was the way to go.

I rewrote my interface module using inheritance from etree.Element
only to find that this does not work (and if I had read the lxml.de
documentation more careful, I would have known that).

Fortunately, it occurred to me that inheriting from the standard
Python module xml.etree.ElementTree might work, and indeed it
did.  The code is all working now.

Just for your amusement, I've attached the working interface
class.

Best regards,
John Shipman (john&amp;lt; at &amp;gt;nmt.edu), Applications Specialist
New Mexico Tech Computer Center, Speare 146, Socorro, NM 87801
(575) 835-5735, http://www.nmt.edu/~john
   ``Let's go outside and commiserate with nature.''  --Dave Farber

On Tue, 21 May 2013, Holger Joukl wrote:

'''newadds.py: Complete rewrite of readadds.py

  class AddsFile:  Represents one semester's CMS course requests.
    AddsFile(acadYear, semCode, host=None):
      [ (acadYear is an academic year as a f&lt;/pre&gt;</description>
    <dc:creator>John W. Shipman</dc:creator>
    <dc:date>2013-05-21T19:42:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6871">
    <title>Re: wrong ELF class</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6871</link>
    <description>&lt;pre&gt;





Hi Simon, Hi Holger,

with your help I found out that the rpm was actually i586. I don't know how that happened.
As far as I remember it was part of official SuSE release. 
Anyway I replaced with an rpm from rpm-find and now my application is running.

Thanks

Wolfgang




_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Wolfgang Buesser</dc:creator>
    <dc:date>2013-05-27T16:41:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6870">
    <title>Re: wrong ELF class</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6870</link>
    <description>&lt;pre&gt;Hi,


This might also be helpful for checking to which package the file actually
belongs
or which files your downloaded package contains:

http://llamalabs.com/2007/04/13/which-package-does-a-file-belong-to-rpm-style/

Holger

Landesbank Baden-Wuerttemberg
Anstalt des oeffentlichen Rechts
Hauptsitze: Stuttgart, Karlsruhe, Mannheim, Mainz
HRA 12704
Amtsgericht Stuttgart
_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Holger Joukl</dc:creator>
    <dc:date>2013-05-27T09:29:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6869">
    <title>Re: wrong ELF class</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6869</link>
    <description>&lt;pre&gt;Le 27/05/2013 01:55, Wolfgang Buesser a écrit :

It depends, where did you get this RPM file?



Try running this command:
file /usr/lib/python2.7/site-packages/lxml/etree.so

Cheers,
&lt;/pre&gt;</description>
    <dc:creator>Simon Sapin</dc:creator>
    <dc:date>2013-05-27T09:00:17</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6868">
    <title>wrong ELF class</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6868</link>
    <description>&lt;pre&gt;Hello,

I am running SUSE 12.3 on an AMD-64 System.

I have installed python-lxml-2.3.4-6.1.1.x86_64.rpm

When lxml gets called from gnuradio-companion I get the following
error-message:

ImportError: /usr/lib/python2.7/site-packages/lxml/etree.so: wrong ELF
class: ELFCLASS32

Could it be possible, that the architecture in the RPM does not match
64-Bit (despite it's name)?

How can I check?

How can I get a working python-lxml for my system?

Thanks

Wolfgang



_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Wolfgang Buesser</dc:creator>
    <dc:date>2013-05-26T17:55:20</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6867">
    <title>Re: Error seen when running unit tests</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6867</link>
    <description>&lt;pre&gt;Am 22.05.2013 19:54, schrieb Lindykid:

My educated guess is that it's an issue with libxml2. The 2.7.x versions
below 2.7.8 are known to have varying minor issues. If you can't
(easily) upgrade your system library, consider a static lxml build,
preferably using the latest libxml2 2.9.x release.

Alternatively, test your own code with what you have and if that works,
it's unlikely to magically start failing without modifications. Bugs in
libxml2 often just impact specific features (such as push parsing
above), not all of lxml.

Stefan

_________________________________________________________________
Mailing list for the lxml Python XML toolkit - http://lxml.de/
lxml&amp;lt; at &amp;gt;lxml.de
https://mailman-mail5.webfaction.com/listinfo/lxml
&lt;/pre&gt;</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2013-05-25T08:28:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6866">
    <title>Changing encoding while parsing an HTML string</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6866</link>
    <description>&lt;pre&gt;If I understand how the XML parser works, if it parses an XML string that
begins with a header line like

&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;

it will parse the rest of the XML string using the encoding of the encoding
it has found. So first of all, does the XML parser do this?

If so, I'd like to know if something like this can be done, either
automatically or manually, with the HTML parser.

I have been parsing HTML strings that have been obtained from a random
sampling of web sites, and I am wondering if there is a way to do something
similar with these HTML strings. Typically, these HTML strings do not start
with a header like, but most of them do have a meta tag of the form

&amp;lt;meta charset="utf-8"&amp;gt;

or

&amp;lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" &amp;gt;

I wouldn't expect that the HTML parser reads these tags and automatically
sets the encoding to be used while parsing the rest of the HTML string (but
I might as well ask: does it?). I could include code in my target's start
tag handl&lt;/pre&gt;</description>
    <dc:creator>Michael O'Leary</dc:creator>
    <dc:date>2013-05-24T19:22:56</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/6865">
    <title>Re: lxml.objectify drops leading whitespace</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/6865</link>
    <description>&lt;pre&gt;Hi,


It is intentional. For data binding the text content of elements with
children is (usually) irrelevant.

IIRC this only drops whitespace for elements with children, not for
elements
with text-only content.

You should be able to change objectify's behaviour by changing it's
default parser using makeparser() and set_default_parser:

def set_default_parser(new_parser = None):
    u"""set_default_parser(new_parser = None)

    Replace the default parser used by objectify's Element() and
    fromstring() functions.

    The new parser must be an etree.XMLParser.

    Call without arguments to reset to the original parser.
    """

def makeparser(**kw):
    u"""makeparser(remove_blank_text=True, **kw)

    Create a new XML parser for objectify trees.

    You can pass all keyword arguments that are supported by
    ``etree.XMLParser()``.  Note that this parser defaults to removing
    blank text.  You can disable this by passing the
    ``remove_blank_text`` boolean keyword option yourself.
    """
&lt;/pre&gt;</description>
    <dc:creator>Holger Joukl</dc:creator>
    <dc:date>2013-05-24T16:33:31</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.python.lxml.devel">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.python.lxml.devel</link>
  </textinput>
</rdf:RDF>
