How can I get xmllint to output multiple results of xpath selector for attributes \"per line\"?
Take this example:
You can try:
$ xmllint --shell inputfile <<< `echo 'cat /config/*/@*'`
You might need to grep the output, though, so as to filter the undesired lines.
grep