xpath语法中,如何查询值为空的节点?
xml.xpath("//[XX[.!='']]")
--------------------------------------//td[.!= '']----------------------------------------------------------------
if each.xpath("./td[2]/text()[.!= '']"):
self.positionType = each.xpath("./td[2]/text()").extract()[0]
else:
self.positionType = "未知"