5

How do I parse namespaces from an XML file using XMLLINT and BASH

view full story
linux-howto

http://unix.stackexchange.com – Below I have an example of an Adobe XML swidtag used to track inventory. I need to parse out relevant information using bash and output that to a new text file. FYI I'm using terminal on a mac. For example I would like to parse the following swid:entitlement_required_indicator swid:product_title swid:product_version swid:name swid:numeric swid:major swid:minor swid:build swid:review I have tried using this, but it will not let me read the namespace xmllint --xpath '//swid:product_version/swid:name/text()' nameoffile.xml Sample tag file for Creative Suite 5 The following sample is for Ad (HowTos)