Пример #1
0
 def endElement(self, name):
     print("</Element><!-- name=%s>" % qa(name))
Пример #2
0
 def endElementNS(self, name, qname):
     print("</ElementNS><!-- name=%s qname=%s -->" % (qa(str(name)), qa(str(qname))))
Пример #3
0
 def endPrefixMapping(self, prefix):
     print("</PrefixMapping><!-- %s -->" % qa(str(prefix)))
Пример #4
0
 def startPrefixMapping(self, prefix, uri):
     print("<PrefixMapping prefix=%s uri=%s>" % (qa(str(prefix)), qa(str(uri))))
Пример #5
0
 def startElementNS(self, name, qname, attrs):
     print("<ElementNS name=%s namespace=%s qname=%s>" % (qa(str(name[1])), qa(str(name[0])), qa(str(qname))))
     for (ak, av) in attrs.items():
         print("<Attribute name=%s>%s</Attribute>" % (qa(str(ak)), escape(str(av))))
Пример #6
0
 def startElement(self, name, attrs):
     print("<Element name=%s>" % (qa(name)))
     for (ak, av) in attrs.items():
         print("<Attribute name=%s>%s</Attribute>" % (qa(ak), escape(av)))