Skip to content

AlbertMingXu/ElementTree_CDATA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ElementTree_CDATA
版本:python3.5
xml.etree.ElementTree
修改ElementTree,支持生成CDATA节点


 用法:
   import ElementTree as ET
   root = ET.Element('data')
   root.text = ET.CDATA('a string')
   print (tostring(root, encoding='utf-8'))

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages