Python how to get XML Namespace using etree -


i have no chance access namespace definitions in python using xml.etree.elementtree:

attributes of rootelement:

xmlns="http://www.adv-online.de/namespaces/adv/gid/6.0" xmlns:gml="http://www.opengis.net/gml/3.2" test="xxx" 

rootelemt.attrib contains attribute "test" ns-definitions ignored parser.

i have written lot of functions work etree.elements switching type last option.

i know lxml capable of getting namespaces im scared of using because don't want install dependencys on users computer.

is there lib capable of doing job.

thanks


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

excel - I can't get the attachement of the email PHP -

node.js - Express and Redis - If session exists for this user, don't allow access -