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

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

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

android - How to create dynamically Fragment pager adapter -