basic xml validator using lxml library