2012-04-16 145 views
0

xmllint sample.xml --xpath "//a[text()='some value']/@href"提取刚刚从 “A HREF”

输出链接:

href="http://some.address"

我怎么能输出只是无属性名称的链接?

回答

1

xmllint sample.xml --xpath "string(//a[text()='some value']/@href)"