reading XML file using python

superpollo utente at esempio.net
Mon May 17 05:24:34 EDT 2010


Simon Brunning ha scritto:
> On 17 May 2010 09:34:51 UTC+1, shanti bhushan <ershantibhushan at gmail.com> wrote:
>> Hi ,
>> 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?

bye



More information about the Python-list mailing list