XMLStarlet does not select anything
I have a typical pom.xml, and want to print the groupId, artifactId and version, separated by colon. I think that XMLStarlet is the right tool for that. I tried several ways, but I always get an empty line. xml sel -t -m project -v groupId -o : -v artifactId -o : -v version pom.xml Expected output: org.something.apps:app-acct:5.4 Real output: empty line Even if I try to print just the groupId I get nothing: xml sel -t -v project/groupId pom.xml I am sure that the tool sees the elements because I can list them without problem: xml el pom.xml prints the following (correctly): project project