Re: Removing NS in ElementTree

2007-05-26 Thread Rob Wolfe
"Sebastian Bassi" <[EMAIL PROTECTED]> writes: > I would like to remove the namespace information from my elements and > have just the tag without this information. This > "{http://uniprot.org/uniprot}"; is preapended into all my output. > I understand that the solution is related with "_namespace_

Re: Removing NS in ElementTree

2007-05-25 Thread Stefan Behnel
Sebastian Bassi wrote: > I would like to remove the namespace information from my elements and > have just the tag without this information. This > "{http://uniprot.org/uniprot}"; is preapended into all my output. for el in root.getiterator(): if el.tag[0] == '{': el.tag = el.tag

Removing NS in ElementTree

2007-05-25 Thread Sebastian Bassi
I would like to remove the namespace information from my elements and have just the tag without this information. This "{http://uniprot.org/uniprot}"; is preapended into all my output. I understand that the solution is related with "_namespace_map" but I don't know much more. >>> for x in eleroot