How to check all files and find a file type in all directories in Python
Going through all the directories to find the path of a specific type of file is easy in Python. This helps with mass processing files.
How to check tag exists when parsing XML in Python
When using Python minidom to parse XML it is easy to encounter an "IndexError: list index out of range" if the tag does not exit.
An easy fix is to check the size of "doc.getElementsByTagName".