reading XML file using python

Stefan Behnel stefan_ml at behnel.de
Mon May 17 05:35:21 EDT 2010


superpollo, 17.05.2010 11:24:
> Simon Brunning ha scritto:
>> On 17 May 2010 09:34:51 UTC+1, shanti bhushan wrote:
>>> i am new to python.i want to read the XML file using python it ,by
>>> using DOm or SAX any of them.
>>> I want to read the http://www.google.com(any hyper text) from XML and
>>> print that.
>>> please give me the sample program for this.
>>
>> Your question isn't very clear. Do you want to read the data from a
>> URL (such as http://www.google.com) and parse it? If so, you probably
>> don't want an XML parser as such - try Beautiful Soup.
>
> btw, is there any chance that bs will be part of the stdlib anytime soon?

If someone takes over maintainership and offers support for the stdlib, 
this might be worth discussing. Otherwise, no.

Stefan




More information about the Python-list mailing list