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'))
-
Notifications
You must be signed in to change notification settings - Fork 0
License
AlbertMingXu/ElementTree_CDATA
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published