Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1255927
  • 博文数量: 168
  • 博客积分: 3483
  • 博客等级: 中校
  • 技术积分: 1696
  • 用 户 组: 普通用户
  • 注册时间: 2006-02-06 13:17
文章分类

全部博文(168)

文章存档

2015年(6)

2014年(9)

2013年(47)

2012年(11)

2011年(13)

2010年(18)

2009年(11)

2008年(42)

2007年(11)

分类: LINUX

2013-10-11 11:20:33

xmllint --xpath 'string($xmlPath)' k.xml

----------------------------------------------------------------------
#common usage:
xmllint --xpath '//element/@attribute' filename.xml
xmlstarlet sel -T -t -m '//element/@attribute' -v '.' -n filename.xml

# xmllint shell usage:
http:// lizards.opensuse.org/2009/11/23/playing-with-xpath-expressions-in-the-xmllint-shell

# difference of "//div[@class='known']" and "string(//div[@class='known']/@name)"
http:// stackoverflow.com/tags/xmllint/hot
阅读(1054) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~