コード例 #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)