[Twisted-Python] xml library in twisted

Justin Warren daedalus at eigenmagic.com
Mon Mar 10 21:26:50 EDT 2008


On Mon, 2008-03-10 at 13:17 +0100, Atilla wrote:
> On 04/03/2008, Raj kumar <k_r_a_j_kumar at 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 at eigenmagic.com>




More information about the Twisted-Python mailing list