Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

xml parser

Github Repo

https://github.com/alpine-docker/multi-arch-docker-images/xml

Daily Travis CI build logs

https://app.circleci.com/pipelines/github/alpine-docker/multi-arch-docker-images?branch=master

Docker image tags

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

installed tools

TAG is verison of jq

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