[Twisted-Python] xml library in twisted
Hi all, I'm dealing with xml files in a twisted application, can any one suggest me the best xml library in twisted? Previously i used twisted.web.microdom and twisted.web.minidom but they don't have much of the functionalities.... Is there any other xml library in twisted which makes it easy with lot of options? I wanted to create a xml file like this... <game> <player1> <stuff> </stuff> </player1> <player2> <stuff> </stuff> </player2> </game> and want to access that player stuff directly..(like a tree structure) Thank you in advance. Now you can chat without downloading messenger. Go to http://in.messenger.yahoo.com/webmessengerpromo.php
On 04/03/2008, Raj kumar <k_r_a_j_kumar@yahoo.co.in> wrote:
Hi all, I'm dealing with xml files in a twisted application, can any one suggest me the best xml library in twisted? Previously i used twisted.web.microdom and twisted.web.minidom but they don't have much of the functionalities.... Is there any other xml library in twisted which makes it easy with lot of options? I wanted to create a xml file like this...
<game> <player1> <stuff> </stuff> </player1> <player2> <stuff> </stuff> </player2> </game>
and want to access that player stuff directly..(like a tree structure)
Thank you in advance.
If you need powerful interfaces you could take a look at libxml, with the lxml python bindings. Check http://codespeak.net/lxml/ .
On Mon, 2008-03-10 at 13:17 +0100, Atilla wrote:
On 04/03/2008, Raj kumar <k_r_a_j_kumar@yahoo.co.in> wrote:
Hi all, I'm dealing with xml files in a twisted application, can any one suggest me the best xml library in twisted? Previously i used twisted.web.microdom and twisted.web.minidom but they don't have much of the functionalities.... Is there any other xml library in twisted which makes it easy with lot of options? I wanted to create a xml file like this...
<game> <player1> <stuff> </stuff> </player1> <player2> <stuff> </stuff> </player2> </game>
and want to access that player stuff directly..(like a tree structure)
Thank you in advance.
If you need powerful interfaces you could take a look at libxml, with the lxml python bindings. Check http://codespeak.net/lxml/ .
I second the use of lxml. The ability to mix Pythonic object handling with a fairly complete XPATH implementation is powerful indeed. -- Justin Warren <daedalus@eigenmagic.com>
participants (3)
-
Atilla -
Justin Warren -
Raj kumar