Perl XML::Simple and Data::Dumper - exists in Python?

George Sakkis gsakkis at rutgers.edu
Sun Nov 6 23:02:58 CET 2005


"Fredrik Lundh" <fredrik at pythonware.com> wrote:

> Miguel Manso wrote:
>
> > Can you point me out to Python solutions for:
> >
> > 1) Perl's Data::Dumper
> >
> > It dumps any perl variable to the stdout in a "readable" way.
>
> >>> import pprint
> >>> help(pprint)
>
> > 2) Perl's XML::Simple
> >
> > It maps a XML file into a Perl data structure.
>
> some alternatives:
>
>     http://www.effbot.org/tags/elementtree
>     http://article.gmane.org/gmane.comp.python.tutor/24986
>     http://www.crummy.com/software/BeautifulSoup/
>     http://www.aaronsw.com/2002/xmltramp/
>     http://www.xml.com/pub/a/2005/01/19/amara.html

One more: http://www.xml.com/pub/a/2003/07/02/py-xml.html

George




More information about the Python-list mailing list