A simple bash script to explore xmllint & xmlstarlet usage
xmllint Documentation
xmlstarlet Documentation
Mac OS X (Yosemite) installed by default
Ubuntu: sudo apt-get install libxml2-utils
For Mac: brew install xmlstarlet
For Ubuntu: sudo apt-get install xmlstarlet
- --xpath
- --repeat
- --timing
- -el
- -el -a
- -el -v
- -ed -d
- -ed -u
Project includes below sample xml file
books.xml
./xmllint.sh data/books.xml
./xmlstarlet.sh data/books.xml