#!/usr/bin/python3 from xml.etree import ElementTree as ET tree = ET.parse("comments.xml")