From: Gary M. <gm...@gm...> - 2016-08-10 13:36:15
|
I am trying to parse an XML file (https://static.nvd.nist.gov/ feeds/xml/cve/nvdcve-2.0-2013.xml.gz) and access specific elements (vuln:cve-id, cvss:score and cpe-lang:fact-ref). I've tried many different variations of the command below but the result is always empty. How can I access these values? $ xmlstarlet sel -N scap-core="http://scap.nist.gov/schema/scap-core/0.1" -N cvss="http://scap.nist.gov/schema/cvss-v2/0.2" -N vuln=" http://scap.nist.gov/schema/vulnerability/0.4" -N xsi=" http://www.w3.org/2001/XMLSchema-instance" -N patch=" http://scap.nist.gov/schema/patch/0.1" -N cpe-lang=" http://cpe.mitre.org/language/2.0" -t -v ''/nvd/entry/vuln:cve-id" nvdcve-2.0-2013.xml $ |