Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Latest commit

 

History

History
39 lines (21 loc) · 1.15 KB

File metadata and controls

39 lines (21 loc) · 1.15 KB

xml parser

This repo has been archived, its image will be maintained in repo https://github.com/alpine-docker/multi-arch-docker-images/tree/master/xml

Github Repo

https://github.com/alpine-docker/xml

Daily Travis CI build logs

https://travis-ci.org/alpine-docker/xml

Docker image tags

https://hub.docker.com/r/alpine/xml/tags/

installed tools

If you need other xml tools, let me know.

Command samples

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