xpath取最后一个元素

取xpath最后一个book元素

book[last()]

取xpath最后第二个book元素

book[last()-1]

原文地址:https://www.cnblogs.com/z-x-y/p/9718763.html