Module for converting XML to Python object(s)?
uche at ogbuji.net
Mon Aug 9 16:37:23 CEST 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 -
Use XML namespaces with care -
Managing XML libraries - http://www.adtmag.com/article.asp?id=9160
Commentary on "Objects. Encapsulation. XML?" -
Harold's Effective XML -
A survey of XML standards -
More information about the Python-list