several xml tools to work on xml file as jq to json.
100K+
https://github.com/alpine-docker/xml
https://travis-ci.org/alpine-docker/xml
https://hub.docker.com/r/alpine/xml/tags/
If you need other xml tools, let me know.
get version
docker run -ti --rm alpine/xml sh -c "curl -s https://raw.githubusercontent.com/codecov/example-java/master/pom.xml |xq .project.version"
exclude version
docker run -ti --rm alpine/xml sh -c "curl https://raw.githubusercontent.com/codecov/example-java/master/pom.xml |xq 'del(.project.version)' --xml-output"
convert a local xml to json
docker run -ti --rm -v $(pwd):/apps -w /apps alpine/xml sh -c "xq .< pom.xml"
For usage of xmllint, please go through its homepage
Content type
Image
Digest
sha256:89af2d21e…
Size
27 MB
Last updated
4 days ago
docker pull alpine/xml:1.8.1Pulls:
1,232
Last week