python mechanize/libxml2dom question
bedouglas at earthlink.net
Tue Sep 2 05:35:47 CEST 2008
i've got the following situation, with the following test url:
i can generate a list of the tables i want for the courses on the page.
however, when i try to create the xpath query, and plug it into the xpath
within python, i'm missing something. if i have a parent xpath query, that
generates a list of results/nodes... how can i then use the individual
parent node, and trigger off of it, to get further information.
i tried using the following chunk of code with no luck.
#s is the html from the course file
d = libxml2dom.parseString(s, html=1)
#at this point, we should have a vaild "d" representation
print "hereeeeee \n\n\n"
# **** course names
for cpath in cpath_:
#get the coursename info
i'm assuming that there's a libxml2node method that will do what i need that
pointers/comments would be helpful here...
More information about the Python-list