I try to pipe curl and xmllint to parse the xml output from an url. But for some reason xml won't parse the xml and instead the resulting xml from the curl is shown. I'm a missing a setting? If is store the result of the curl action as a file and use that as an input for xmllint it parses correctly.
curl --location --header "Accept: application/rdf+xml" http://www.test.com | xmllint --format - --xpath '//title'
2>&1
? Or you could use my xidelhttp://www.test.com -e //title
then you do not need to pipe – Atelectasis