示例#1
0
 def encode(self, node, errs):
     assert self.tag != ""
     for key in self.iterkeys():
         newnode = xmlext.addNode(node, self.tag)
         xmlext.setNodeAttribute(newnode, "xml:lang", key)
         xmlext.addText(newnode, "", self[key])
示例#2
0
 def encode(self, node, errs):
     assert self.tag != ''
     for key in self.iterkeys():
         newnode = xmlext.addNode(node, self.tag)
         xmlext.setNodeAttribute(newnode, 'xml:lang', key)
         xmlext.addText(newnode, '', self[key])
示例#3
0
 def writetext(node, attr, text):
     # print 'write attr', attr, text
     xmlext.setNodeAttribute(node, attr, text)
示例#4
0
 def writetext(node, attr, text):
     #print 'write attr', attr, text
     xmlext.setNodeAttribute(node, attr, text)