예제 #1
0
  def handle_starttag(self, tag, attrs):
    self.serial += 1

    check_attribute_sanity(self.filename, attrs)
    
    self.print_banner_comment()
    self.output.write("<" + tag + x_xml.format_attrs(rewrite_attrs(attrs)) + ">")
    return
예제 #2
0
파일: xhtml.py 프로젝트: pquentin/gimp-web
def xml(attrs={"version" : "1.0", "encoding" : "utf-8"}):
  return ("<?xml" + x_xml.format_attrs(attrs) + "?>")
예제 #3
0
 def handle_startendtag(self, tag, attrs):
   self.output.write("<" + tag + x_xml.format_attrs(rewrite_attrs(attrs)) + " />")
   self.serial += 1
   return