Lines Matching refs:syntax_error
194 self.syntax_error("bogus `&'")
206 self.syntax_error("`;' missing after char reference")
213 self.syntax_error("bogus `&'")
217 self.syntax_error("reference to unknown entity `&%s;'" % str)
220 self.syntax_error("bogus `&'")
263 self.syntax_error('illegal data at start of file')
266 self.syntax_error('data not in content')
268 self.syntax_error('illegal character in content')
314 self.syntax_error("<?xml?> declaration not at start of document")
341 self.syntax_error('multiple DOCTYPE elements')
343 self.syntax_error('DOCTYPE not at beginning of document')
362 self.syntax_error("`;' missing in charref")
365 self.syntax_error('data not in content')
373 self.syntax_error("`;' missing in entityref")
395 self.syntax_error("bogus `]]>'")
409 self.syntax_error("bogus `%s'" % data)
411 self.syntax_error('illegal character in content')
419 self.syntax_error('no elements in file')
421 self.syntax_error('missing end tags')
434 self.syntax_error("`--' inside comment")
436 self.syntax_error('comment cannot end in three dashes')
439 self.syntax_error('illegal character in comment')
481 self.syntax_error("bogus `>' in DOCTYPE")
487 self.syntax_error('garbage in DOCTYPE')
501 self.syntax_error('illegal character in CDATA')
503 self.syntax_error('CDATA not in content')
516 self.syntax_error('illegal character in processing instruction')
525 self.syntax_error('old-fashioned namespace declaration')
531 self.syntax_error('xml:namespace declaration too late in document')
534 self.syntax_error('namespace declaration inside namespace declaration')
537 self.syntax_error("unknown attribute `%s' in xml:namespace tag" % attrname)
539 self.syntax_error('xml:namespace without required attributes')
542 self.syntax_error('xml:namespace illegal prefix value')
545 self.syntax_error('xml:namespace prefix not unique')
549 self.syntax_error('illegal processing instruction target name')
567 self.syntax_error("no value specified for attribute `%s'" % attrname)
573 self.syntax_error("attribute `%s' value not quoted" % attrname)
583 self.syntax_error("`<' illegal in attribute value")
585 self.syntax_error("attribute `%s' specified twice" % attrname)
599 self.syntax_error('garbage in starttag')
606 self.syntax_error('starttag does not match DOCTYPE')
608 self.syntax_error('multiple elements on top level')
662 … self.syntax_error("unknown attribute `%s' in tag `%s'" % (attrnamemap[key], tagname))
684 self.syntax_error('no name specified in end tag')
697 self.syntax_error('garbage in end tag')
712 self.syntax_error('name-less end tag')
723 self.syntax_error('unopened end tag')
727 self.syntax_error('missing close tag for %s' % self.stack[-1][2])
794 def syntax_error(self, message): member in XMLParser
802 self.syntax_error("reference to unknown entity `&%s;'" % name)
845 def syntax_error(self, message): member in TestXMLParser