Re: lxml.etree, namespaces and element insertion

2011-01-27 Thread Neil Cerutti
On 2011-01-27, hein wrote: > - How am i supposed to detect a missing namespace, if there > are no differences in the serialized representation? (That's > what i initially used to debug the problem.) lxml's pretty printer is at fault, as it emits unprefixed names whenever possible while seriali

Re: lxml.etree, namespaces and element insertion

2011-01-27 Thread Stefan Behnel
hein, 27.01.2011 19:16: The other day i was processing an xml tree using lxml.etree. That tree contained a namespace. During that processing i inserted an element. Later on i tried to find that element using xpath. And to my suprise that element was not found! Maybe my suprise is just the result

lxml.etree, namespaces and element insertion

2011-01-27 Thread hein
The other day i was processing an xml tree using lxml.etree. That tree contained a namespace. During that processing i inserted an element. Later on i tried to find that element using xpath. And to my suprise that element was not found! Maybe my suprise is just the result of my marginal knowledge