<?xml version="1.0" ?>
<data>
<test >
<f1 />
</test >
<test2 >
<test3>
<f1 />
</test3>
</test2>
<f1 />
</data>
使用lxml可以遞歸查找標記「f1」嗎?我試過findall方法,但它只適用於直接的孩子。如何使用LXML遞歸查找XML標記?
我想我應該爲BeautifulSoup這個!