I am trying to get the HTML content of child node with lxml and xpath in Python. As shown in code below, I want to find the html content of the each of product nodes. Does i
another way to do this
x=doc.xpath("//div[@class='name']/parent::*") print(map(etree.tostring,x))