[Kimchi-devel] [RFC]: Use lxml to generate and manipulate XML documents
Royce Lv
lvroyce at linux.vnet.ibm.com
Tue Jan 14 06:14:10 UTC 2014
Yeah, I think it is a good idea, I think we don't need any wrapper any
more if we adopt this.
On 2014?01?14? 12:57, 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")
> ' /
>
> /re//sult//: //
> //24.12.2000 //
> //12.24.2000 //
> //key /
>
> more info: http://lxml.de/
>
> --
> Thanks and best regards!
>
> Sheldon Feng(???)<shaohef at linux.vnet.ibm.com>
> IBM Linux Technology Center
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/kimchi-devel/attachments/20140114/52d00c2d/attachment.html>
More information about the Kimchi-devel
mailing list