extract all namespace from xml file python
import xml.etree.ElementTree as ET
my_namespaces = dict([node for _, node in ET.iterparse('file.xml',
events=['start-ns'])])
Are there any code examples left?
New code examples in category Python