Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- #
- import sys
- import xml.etree.ElementTree as ET
- input_file = sys.argv[1]
- tree = ET.parse(input_file)
- root = tree.getroot()
- for geninfo in root.findall('General_Info'):
- for archive in geninfo.findall('Archiving_Info'):
- ARCHIVING_TIME = archive.find('ARCHIVING_TIME').text
- print ARCHIVING_TIME
Add Comment
Please, Sign In to add comment