Lines Matching defs:illegal
24 illegal = re.compile('[^\t\r\n -\176\240-\377]') # illegal chars in content
263 self.syntax_error('illegal data at start of file')
267 if not self.__accept_utf8 and illegal.search(data):
268 self.syntax_error('illegal character in content')
410 if not self.__accept_utf8 and illegal.search(data):
411 self.syntax_error('illegal character in content')
438 illegal.search(rawdata, i+4, res.start(0)):
439 self.syntax_error('illegal character in comment')
500 illegal.search(rawdata, i+9, res.start(0)):
501 self.syntax_error('illegal character in CDATA')
515 if not self.__accept_utf8 and illegal.search(rawdata, i+2, j):
516 self.syntax_error('illegal character in processing instruction')
542 self.syntax_error('xml:namespace illegal prefix value')
549 self.syntax_error('illegal processing instruction target name')
583 self.syntax_error("`<' illegal in attribute value")