reading XML file using python
Stefan Behnel
stefan_ml at behnel.de
Mon May 17 05:01:24 EDT 2010
shanti bhushan, 17.05.2010 10:34:
> 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.
Note that web sites usually are HTML, not XML. Are you sure you want to
read XML as well? Also, DOM/SAX are certainly not the easiest way to
extract information from XML, use the xml.etree.ElementTree package instead.
To parse HTML from web pages, you can use several different tools in
Python, see
http://www.google.com/search?q=python+web+scraping
Stefan
More information about the Python-list
mailing list