Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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'])])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #extract #namespace #xml #file #python
ADD COMMENT
Topic
Name
9+8 =