[lxml-dev] Handling namespaces in tags

David Soulayrol dsoulayrol at free.fr
Tue Oct 21 15:10:27 CEST 2008


Hello,

Is there some utility with lxml to retrieve the namespace and the name
of a tag, or do we have to write on our own something like the
following, anytime we need it ?

ns, tag = node.tag[1:].find('}')

-- 
David.



More information about the lxml-dev mailing list