+1 to manipulate and create xml using lxml

On 01/14/2014 02:57 AM, Sheldon wrote:
As we all know there is a issue about generate and manipulate XML documents
https://github.com/kimchi-project/kimchi/issues/124

IMO, lxml is a good choice.
you can see this patch:
$ git show 69edfe9
Mark use it to generate XML documents.

And for manipulate XML documents, here is a example.
$ ipython -c 'from lxml import objectify
root = objectify.fromstring("<root><a k=\"key\">24.12.2000<b>12.24.2000</b></a></root>")
print root.a
print root.a.b
print root.a.get("k")
'


result
24.12.2000
12.24.2000
key


more info:  http://lxml.de/

-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef@linux.vnet.ibm.com>
IBM Linux Technology Center