import xml.etree.ElementTree as ET t = """ OK 1 0 1 1 1 403 1.0 """ tree = ET.parse(t) root = tree.getroot() for data in root[1]: print data.text