--format
is used only to format (indent, etc) the document. You can do that using --xpath
(tested in Ubuntu, libxml v20900):
$ xmllint --xpath "//project/parent/version/text()" pom.xml
1.5.0
--format
is used only to format (indent, etc) the document. You can do that using --xpath
(tested in Ubuntu, libxml v20900):
$ xmllint --xpath "//project/parent/version/text()" pom.xml
1.5.0