Validating sax parser call first