def Alarms_Validation(self,path,AlarmNo,AlarmText,Severity,Text,Event):
with open(path) as f:
tree = et.parse(f)
RUN=True
root = tree.getroot()
try:
for x in xrange(10000):
print x
for y in xrange(6):
print y
if root[x][y].text==AlarmNo:
print "found"
print x
print y
if root[x][y+1].text!=AlarmText:
print "Alarm text is not proper"
else:
print "Alarm Text is proper"
except IndexError:
pass