lxml-wrapperlxml wrapper that simplifies XML generation code | |
Download |
lxml-wrapper Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Mateusz Pawlik
- Publisher web site:
- http://matee.net
lxml-wrapper Tags
lxml-wrapper Description
lxml wrapper that simplifies XML generation code lxml-wrapper simplifies your Python XML generation code.Example XML:< root attrib="10" > text < child attrib="" > childtext < /child > tail< /root >New way:E('root', attrib=10).add( 'text', E('child', attrib=None).add( 'childtext'), 'tail')Old way:root = Element('root', attrib=str(10)) # cast to strroot.text = 'text'child = SubElement(root, 'child', attrib=value or "") # change None to empty stringchild.text = 'childtext'child.tail = 'tail' Requirements: · Python
lxml-wrapper Related Software