全部博文(168)
分类: LINUX
2013-10-11 11:20:33
---------------------------------------------------------------------- #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