Answers for "extract all namespace from xml file python"

0

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'])])
Posted by: Guest on April-13-2021

Code answers related to "extract all namespace from xml file python"

Python Answers by Framework

Browse Popular Code Answers by Language