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

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -