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

Fredrik Lundh fredrik at pythonware.com
Sun Nov 6 16:23:46 EST 2005


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

</F>






More information about the Python-list mailing list