Seems that xmllint requires the - stdin redirect be at the end of the command.
curl --location --header "Accept: application/rdf+xml" http://www.test.com \
| xmllint --format --xpath '//title' -
Seems that xmllint requires the - stdin redirect be at the end of the command.
curl --location --header "Accept: application/rdf+xml" http://www.test.com \
| xmllint --format --xpath '//title' -