如何編寫XPath表達式來選擇那些沒有文字孩子的元素?沒有文字孩子的元素
來源
2012-05-14 Ataman
您可以使用:
//xmlelement[not(node())]
或
//xmlelement[not(text())]
2012-05-14 12:56:28 SoEnLion