Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

element tree no able to find tag

tree = ET.parse('my_data.xml') # if xml data is in file
tree = ET.fromstring('xml_string') # if xml data is in type string

root = tree.getroot()

for child in root.findall('.//SearchString'):
  print(child)
 
PREVIOUS NEXT
Tagged: #element #tree #find #tag
ADD COMMENT
Topic
Name
1+8 =