Skip to content

Instantly share code, notes, and snippets.

@9600
Created March 14, 2021 12:48
Show Gist options
  • Save 9600/c514b978dd2546b96e50115943e85f03 to your computer and use it in GitHub Desktop.
Save 9600/c514b978dd2546b96e50115943e85f03 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
from xml.etree import ElementTree as ET
tree = ET.parse('test.xml')
value = tree.find('.//{http://schemas.xmlsoap.org/soap/envelope/}value')
if value:
print('Found value: {0}').format(value.text)
else:
print('NOT FOUND')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment