Module for converting XML to Python object(s)?

Uche Ogbuji uche at ogbuji.net
Mon Aug 9 10:37:23 EDT 2004


"Colin Brown" <cbrown at metservice.com> wrote in message news:<41105a9c$1 at news.iconz.co.nz>...
> "Robert Oschler" <no_replies at fake_email_address.invalid> wrote in message
> news:otdPc.224$df.27 at bignews5.bellsouth.net...
> > Has anybody seen a Python module that will take an XML document (not a
> > colossal one), and convert it to a Python nested class object?
> 
> Also pyRXP  ref: http://www.reportlab.org/pyrxp.html

PyRXPU (the only useful part of PyRXP) is not really what the OP was
asking for.  It creates lists and dicts rather than actual element
structures that can be accessed using the natural vocabulary from the
XML (e.g. "print html.head.title").


-- 
Uche Ogbuji                                    Fourthought, Inc.
http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
Perspective on XML: Steady steps spell success with Google -
http://www.adtmag.com/article.asp?id=9663
Use XML namespaces with care -
http://www-106.ibm.com/developerworks/xml/library/x-namcar.html
Managing XML libraries - http://www.adtmag.com/article.asp?id=9160
Commentary on "Objects. Encapsulation. XML?" -
http://www.adtmag.com/article.asp?id=9090
Harold's Effective XML -
http://www.ibm.com/developerworks/xml/library/x-think25.html
A survey of XML standards -
http://www-106.ibm.com/developerworks/xml/library/x-stand4/



More information about the Python-list mailing list