# XmlElement
A simpler XML writer.
## Installation
`pip install XmlElement`
## Test
```
>>> from XmlElement import XmlElement as X
>>> xml = X.from_string('<test><x/></test>')
>>> xml
XmlElement(test)
```
## Usage
```python
import XmlElement from XmlElement
xml = XmlElement('RootElement', s=[ # root element without attributes
X('Child1', {'name': 'child1'}, [ # sub element with an attribute
X('Child2', t='Example Value') # sub-sub element with text value
])
])
print(xml)
```
PyPI 官网下载 | XmlElement-0.0.11.tar.gz
版权申诉
37 浏览量
2022-01-17
13:19:54
上传
评论
收藏 3KB GZ 举报
挣扎的蓝藻
- 粉丝: 12w+
- 资源: 15万+
最新资源
- SIMATIC-WinCC-Runtime-Professional-V19安装包-链接地址.txt
- 5G网优案例:参数漏配导致EPSFB回落后重定向到5G使语音无法拨通案例.docx
- Windows系统上安装Anaconda的步骤.txt
- 毕业设计基于air302 - nbiot智能快递柜存储源码.zip
- Windows系统上安装Anaconda的步骤
- 使用vue3+msal获取outlook用户邮箱数据
- Windows系统上安装Anaconda的步骤
- 570789 UPUPW-ANK-W64-V1.1.3
- 570787 UPUPW-ANK-W32-V1.1.3
- mysqlfront-v5.4.4.153-xfdown.com
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈