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



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>



.



Relevant Pages

  • RE: How to get Word docs content(text) ?
    ... You could also have a look at the filtdump.exe tool in the Platform SDK which effectively does exactly this and dumps the text to stdout... ... James ...
    (microsoft.public.sharepoint.portalserver.development)
  • Re: Perl XML::Simple and Data::Dumper - exists in Python?
    ... > Miguel Manso wrote: ... >> Can you point me out to Python solutions for: ... >> It maps a XML file into a Perl data structure. ...
    (comp.lang.python)
  • Re: c question: *printfing arrays
    ... but that simply dumps the contents of the struct to stdout. ... most of the struct's contents aren't ascii the output isn't really of much ...
    (freebsd-hackers)