#!/usr/bin/env python3 from lxml import etree x=etree.parse("./test1.xml") #import pdb #pdb.set_trace() x.findall("foo")