Exemplo n.º 1
0
 def _write(self, file, node, encoding, namespaces):
     if node.tag is CDATA:
         # Quick HACK to get accented characters to decode correctly.
         text = node.text.decode("latin-1")
         text = u"\n<![CDATA[%s]]>\n" % text
         file.write(text)
     else:
         Orig_ElementTree._write(self, file, node, encoding, namespaces)