<?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 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/3830"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3829"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3828"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3827"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3826"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3825"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3824"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3823"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3822"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3821"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3820"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3819"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3818"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3817"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3816"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3815"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3814"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3813"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3812"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3811"/>
      </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/3830">
    <title>Behaviour of Element.iter() changes when removing a nodedepending on whether the node has children or not</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3830</link>
    <description>Hi (and sorry for the stupidly long subject, but otherwise it doesn't  
actually cover the subject),

I'm not sure whether this is a bug or not (if not, there probably  
ought to be some note in the docs), but, for example:

 &gt;&gt;&gt; from lxml import etree
 &gt;&gt;&gt; foo = etree.fromstring("&lt;root&gt;&lt;a&gt;&lt;b/&gt;&lt;/a&gt;&lt;a/&gt;&lt;/root&gt;")
 &gt;&gt;&gt; for element in foo.iter(etree.Element):
...     print element.tag
...     if element.tag == "a":
...             element.getparent().remove(element)
...
root
a
b
 &gt;&gt;&gt; foo = etree.fromstring("&lt;root&gt;&lt;a/&gt;&lt;a/&gt;&lt;/root&gt;")
 &gt;&gt;&gt; for element in foo.iter(etree.Element):
...     print element.tag
...     if element.tag == "a":
...             element.getparent().remove(element)
...
root
a
a

Only in the latter case does the final a element actually appear in  
the iteration, whereas in the former case it just vanishes. What  
changes the behaviour is the fact that in former case the first a  
element has a child: an empty b element.


--
Geoffrey Sneddon
&lt;http://gsnedders.com/&gt;
</description>
    <dc:creator>Geoffrey Sneddon</dc:creator>
    <dc:date>2008-07-05T18:13:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3829">
    <title>Re: Removing an attribute</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3829</link>
    <description>
On 5 Jul 2008, at 15:38, John W. Shipman wrote:


Ah, simply that. Much thanks.


--
Geoffrey Sneddon
&lt;http://gsnedders.com/&gt;
</description>
    <dc:creator>Geoffrey Sneddon</dc:creator>
    <dc:date>2008-07-05T14:51:19</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3828">
    <title>Re: Removing an attribute</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3828</link>
    <description>


'&lt;gi a1="one" a2="two"/&gt;'
'&lt;gi a1="one"/&gt;'

Best regards,
John Shipman (john&lt; at &gt;nmt.edu), Applications Specialist, NM Tech Computer Center,
Speare 119, Socorro, NM 87801, (505) 835-5950, http://www.nmt.edu/~john
   ``Let's go outside and commiserate with nature.''  --Dave Farber
</description>
    <dc:creator>John W. Shipman</dc:creator>
    <dc:date>2008-07-05T14:38:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3827">
    <title>Removing an attribute</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3827</link>
    <description>Hi,

I can't seem to find any way to totally remove an attribute, short of  
using Element.clear() (which has obvious issues when you just want to  
remove a single attribute). I need to remove at least &lt; at &gt;id: conformance  
requirements say this must be at least one character, thus just  
setting it to an empty string does not suffice.


--
Geoffrey Sneddon
&lt;http://gsnedders.com/&gt;
</description>
    <dc:creator>Geoffrey Sneddon</dc:creator>
    <dc:date>2008-07-05T08:48:50</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3826">
    <title>Re: [Bug 245541] [NEW] Segfault caused by double free after GC in lxml1.1.2</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3826</link>
    <description>Hi,

Mark Seaborn wrote:

It definitely was, likely over more than one release.



Apparently, edgy has libxml2 2.6.26, so it should build and work. What is the
problem you are experiencing?



The respective code has been fixed and rewritten multiple times since 1.1 and
IIRC the last corner cases were fixed as recent as somewhere in 2.0.x.
In any case, don't use 1.3.1, as it's completely broken. I don't quite
remember, that might be related to the fix or not.

Stefan
</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2008-07-04T20:39:01</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3825">
    <title>Re: lxml segfaults</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3825</link>
    <description>Update:  recompiled python-lxml-2.0.7-1.el5.x86_64.rpm with 
--without-threading, same problem.

Thanks!

John


John Morris wrote:
</description>
    <dc:creator>John Morris</dc:creator>
    <dc:date>2008-07-04T05:26:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3824">
    <title>Re: lxml segfaults</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3824</link>
    <description>Hi,

John Morris wrote:

http://codespeak.net/lxml/dev/element_classes.html

Hope it doesn't hurt.

Stefan
</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2008-07-03T19:17:05</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3823">
    <title>lxml segfaults</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3823</link>
    <description>I'm trying to subclass lxml._Element.  I'm completely new to python, so 
I'm definitely doing something wrong.  The code below segfaults.  Tried 
this with both lxml 1.3.6 and 2.0.7 (both from EPEL 5) along with 
libxslt 1.1.17 (CentOS 5 updates).  Someone beat me over the head with a 
clue?

Thanks!

John


Sysconf.py:
--------------------
from lxml import etree

class Sysconf(etree._Element):
     def __init__(self,datastore):
         etree._Element.__init__(self)


test.py:
--------------------
#!/usr/bin/python

from lxml import etree
import Sysconf

sysconf = Sysconf.Sysconf("sysconf.xml")

print etree.tostring(sysconf)
</description>
    <dc:creator>John Morris</dc:creator>
    <dc:date>2008-07-03T19:07:41</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3822">
    <title>Re: Parsing XML with undefined namespace</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3822</link>
    <description>_______________________________________________
lxml-dev mailing list
lxml-dev&lt; at &gt;codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
</description>
    <dc:creator>jholg&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2008-07-03T10:59:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3821">
    <title>Parsing XML with undefined namespace</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3821</link>
    <description>Hi,

   Is it possible to parse slightly broken XML like this?

   etree.parse("""&lt;xml sanitizer="true" sanitizer:value="true"/&gt;""")

   &gt;&gt;&gt; lxml.etree.XMLSyntaxError: Namespace prefix sanitizer for value
on xml is not defined, line 1, column 31

</description>
    <dc:creator>Andrew Stromnov</dc:creator>
    <dc:date>2008-07-03T10:45:25</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3820">
    <title>Re: Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3820</link>
    <description>_______________________________________________
lxml-dev mailing list
lxml-dev&lt; at &gt;codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
</description>
    <dc:creator>jholg&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2008-07-03T05:56:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3819">
    <title>Re: Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3819</link>
    <description>
A quick blunder fix:

The above works, but is not quite in accordance with the xml:id
specification.  Other XML processors may balk at the above.

The error in this case is that the value of xml:id attributes cannot
start with digits.

The concept works, but it is a bad example.

- Jim Washington
</description>
    <dc:creator>Jim Washington</dc:creator>
    <dc:date>2008-07-02T17:24:07</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3818">
    <title>Re: Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3818</link>
    <description>Hello

2008/7/2 Jim Washington &lt;jwashin&lt; at &gt;vt.edu&gt;:

Indeed, converting the schema to a DTD solved my problem!  Too simple
to think of myself of course.  Somehow the documentation must have
confused me into believing validation with XMLSchema or DTD would work
(I did understand RelaxNG wouldn't work).  Converting the schema is
simple using trang anyway (which I need to do in any case as I'm
writing it in compact RelaxNG).



That's quite nifty too!  Don't think I'll use it this time but very
good to know.


Thanks for your tips
Floris


</description>
    <dc:creator>Floris Bruynooghe</dc:creator>
    <dc:date>2008-07-02T15:31:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3817">
    <title>Re: Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3817</link>
    <description>[...]



[...]


[...]

xml:id,  http://www.w3.org/TR/xml-id/ works OK, if you do not want to
use a schema.  At least, it works with lxml 2.1.beta3.

from lxml import etree
XML_NAMESPACE='http://www.w3.org/XML/1998/namespace'
XML_PREFIX= '{%s}' % XML_NAMESPACE
f = etree.Element('test')
f.set(XML_PREFIX+'id','23455')
etree.tostring(f)
'&lt;test xml:id="23455"/&gt;'
g = etree.SubElement(f,'test1')
g.set(XML_PREFIX+'id','23456')
f.xpath('id("23456")')
[&lt;Element test1 at 777520&gt;]
f.xpath('id("23455")')
[&lt;Element test at 7774c8&gt;]

- Jim Washington
</description>
    <dc:creator>Jim Washington</dc:creator>
    <dc:date>2008-07-02T14:17:12</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3816">
    <title>Re: Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3816</link>
    <description>_______________________________________________
lxml-dev mailing list
lxml-dev&lt; at &gt;codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
</description>
    <dc:creator>jholg&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2008-07-02T12:08:35</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3815">
    <title>Using the Xpath id function</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3815</link>
    <description>Hi

I've sent this to comp.lang.python a few days ago with no repsonse, so
I hope you don't mind if I try here (if there is a better place please
let me know)...

Basically I'm trying to use the .xpath('id("foo")') method on an lxml tree but
can't get it to work.

Given the following XML: &lt;root&gt;&lt;child id="foo"/&gt;&lt;/root&gt;

And it's XMLSchema:

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"&gt;
  &lt;xs:element name="root"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:sequence&gt;
        &lt;xs:element ref="child"/&gt;
      &lt;/xs:sequence&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
  &lt;xs:element name="child"&gt;
    &lt;xs:complexType&gt;
      &lt;xs:attribute name="id" use="required" type="xs:ID"/&gt;
    &lt;/xs:complexType&gt;
  &lt;/xs:element&gt;
&lt;/xs:schema&gt;

Or in more readable, compact RelaxNG, form:

element root {
   element child {
      attribute id { xsd:ID }
   }

}

Now I'm trying to parse the XML and use the .xpath() method to find
the &lt;child/&gt; element using the id XPath functi</description>
    <dc:creator>Floris Bruynooghe</dc:creator>
    <dc:date>2008-07-02T09:34:49</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3814">
    <title>Re: 2.1beta questions: objectify.XML, objectify.parse  base_url arg, deprecate enableRecursiveStr, etree.tounicode()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3814</link>
    <description>_______________________________________________
lxml-dev mailing list
lxml-dev&lt; at &gt;codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
</description>
    <dc:creator>jholg&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2008-07-02T07:30:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3813">
    <title>Re: 2.1beta questions: objectify.XML, objectify.parse  base_url arg, deprecate enableRecursiveStr, etree.tounicode()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3813</link>
    <description>_______________________________________________
lxml-dev mailing list
lxml-dev&lt; at &gt;codespeak.net
http://codespeak.net/mailman/listinfo/lxml-dev
</description>
    <dc:creator>jholg&lt; at &gt;gmx.de</dc:creator>
    <dc:date>2008-07-02T07:27:16</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3812">
    <title>Re: lxml website</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3812</link>
    <description>Hi,

Eric Jahn wrote:

I actually find it really helpful and I don't think many people have the
problem you are experiencing. You didn't state what screen resolution or font
size you are using, but it looks nice for me even in 1024x768. Maybe you can
just try a different font?

The web site is part of the source download, BTW, so you can also fix up
doc/html/style.css yourself.

Stefan
</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2008-07-02T06:11:33</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3811">
    <title>Re: namespace strangeness in lxml 1.1</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3811</link>
    <description>Hi,

Eric Jahn wrote:

Ah, now that you mention it, the above doesn't actually work. It only works
for element text, not for attributes. I'll see if I can change that.



Please do, any contribution is appreciated.

Stefan
</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2008-07-01T17:19:36</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.python.lxml.devel/3810">
    <title>Re: 2.1beta questions: objectify.XML, objectify.parse base_url arg, deprecate enableRecursiveStr, etree.tounicode()</title>
    <link>http://permalink.gmane.org/gmane.comp.python.lxml.devel/3810</link>
    <description>Hi Holger,

jholg&lt; at &gt;gmx.de wrote:

Glad to hear that.



Thanks!



Yep, please do so.



Same as before. You get a byte string when you pass an encoding name, and a
unicode string (str type) when you pass str. That's also something I like
about the new interface.



It would also require a bit more parameter checking and exception raising. The
unicode option and the encoding are mutually exclusive, and unicode is not so
far from an encoding that it would really merit an option on its own.

Note also that you do not pass "Unicode" as a string but the unicode type, and
you get a unicode object back.

Stefan
</description>
    <dc:creator>Stefan Behnel</dc:creator>
    <dc:date>2008-07-01T17:13:04</dc:date>
  </item>
  <textinput 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>
