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[0]:
        print x.tag
        print x.text

        
{http://uniprot.org/uniprot}accession
Q9JJE1
{http://uniprot.org/uniprot}organism


{http://uniprot.org/uniprot}dbReference
None
{http://uniprot.org/uniprot}sequence

MPKKKPTPIQLNPAPDGSAVNGTSSAETNLEALQKKLEELELDEQQRKRL
EAFLTQKQKVGELKDDDFEKISELGAGNGGVVFKVSHKPSGLVMARKLIH
LEIKPAIRNQIIRELQVLHECNSPYIVGFYGAFYSDGEISICMEHMDGGS
LDQVLKKAGRIPEQILGKVSIAVIKGLTYLREKHKIMHRDVKPSNILV



-- 
Sebastián Bassi (セバスティアン)
Diplomado en Ciencia y Tecnología.
GPG Fingerprint: 9470 0980 620D ABFC BE63 A4A4 A3DE C97D 8422 D43D
Club de la razón (www.clubdelarazon.org)
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to