15 Sep
2013
15 Sep
'13
5:51 a.m.
HI Paul,
target = tree.xpath("target[@name='-package-resources']")[0] aapt = target.xpath("//aapt")[0]
Maybe you want to search './/aapt' here? //aapt searches the document.
x = etree.XML('<a><b><c/></b><d><c/></d></a>') d = x.xpath('d')
d[0].xpath('.//c') [<Element c at 0x107c295f0>] d[0].xpath('//c') [<Element c at 0x107c294b0>, <Element c at 0x107c295f0>]