Hello,
I've noticed that when using web.text and an xpath query only the first result of the xpath query is returned.
Is there anyway to return a list of the entire result set? For example the following query against this feed (http://www.govtrack.us/data/us/108/bills/h107.xml) should return all 26 id attributes for <cosponsors> tag.
XPATH QUERY :
//cosponsors/cosponsor/@id
But when combining it with web.text it only prints out the first result: 400001
web.text('http://www.govtrack.us/data/us/108/bills/h107.xml', '//cosponsors/cosponsor/@id')
Any suggestions?
Thanks,
Ilan






Reply With Quote