0
xmllint sample.xml --xpath "//a[text()='some value']/@href"
提取刚刚从 “A HREF”
输出链接:
href="http://some.address"
我怎么能输出只是无属性名称的链接?
xmllint sample.xml --xpath "//a[text()='some value']/@href"
提取刚刚从 “A HREF”
输出链接:
href="http://some.address"
我怎么能输出只是无属性名称的链接?
xmllint sample.xml --xpath "string(//a[text()='some value']/@href)"