Skip to main content
added 143 characters in body
Source Link
Stéphane Chazelas
  • 586.6k
  • 96
  • 1.1k
  • 1.7k

This discussiondiscussion is enlightening.

At the very least, even if not ideal, you should be able to do:

xmllint --xpath "//*[local-name()='product_version']/*[local-name()='name']/text()" file.xml 

Or use xmlstarlet instead:

xmlstarlet sel -t -v //swid:product_version/swid:name file.xml 

This discussion is enlightening.

At the very least, even if not ideal, you should be able to do:

xmllint --xpath "//*[local-name()='product_version']/*[local-name()='name']/text()" 

This discussion is enlightening.

At the very least, even if not ideal, you should be able to do:

xmllint --xpath "//*[local-name()='product_version']/*[local-name()='name']/text()" file.xml 

Or use xmlstarlet instead:

xmlstarlet sel -t -v //swid:product_version/swid:name file.xml 
Source Link
Stéphane Chazelas
  • 586.6k
  • 96
  • 1.1k
  • 1.7k

This discussion is enlightening.

At the very least, even if not ideal, you should be able to do:

xmllint --xpath "//*[local-name()='product_version']/*[local-name()='name']/text()"