Re: ElemenTree and namespaces

2005-05-16 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > In theory, namespace prefixes are entirely arbitrary and only serve as > a temporary link to the namespace URI. In practice, people tend to get > emotionally attached to their favorite prefixes. XPath also breaks this > theory because it refers to prefixes rather than UR

Re: ElemenTree and namespaces

2005-05-16 Thread Matthew Thorley
Thanks Andrew & Oren, that should do the trick. -- http://mail.python.org/mailman/listinfo/python-list

Re: ElemenTree and namespaces

2005-05-16 Thread oren . tirosh
Matthew Thorley wrote: > Does any one know if there a way to force the ElementTree module to > print out name spaces 'correctly' rather than as ns0, ns1 etc? Or is > there at least away to force it to include the correct name spaces in > the output of tostring? > > I didn't see anything in the api

Re: ElemenTree and namespaces

2005-05-16 Thread Andrew Dalke
Matthew Thorley wrote: > Does any one know if there a way to force the ElementTree module to > print out name spaces 'correctly' rather than as ns0, ns1 etc? Or is > there at least away to force it to include the correct name spaces in > the output of tostring? See http://online.effbot.org/2004_08

ElemenTree and namespaces

2005-05-16 Thread Matthew Thorley
Does any one know if there a way to force the ElementTree module to print out name spaces 'correctly' rather than as ns0, ns1 etc? Or is there at least away to force it to include the correct name spaces in the output of tostring? I didn't see anything in the api docs or the list archive, but befo