Skip to content

sumeetsarkar/xmllint-xmlstarlet-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xmllint & xmlstarlet demo

A simple bash script to explore xmllint & xmlstarlet usage

xmllint Documentation
xmlstarlet Documentation

Installation for xmllint

Mac OS X (Yosemite) installed by default

Ubuntu: sudo apt-get install libxml2-utils

Installation for xmlstarlet

For Mac: brew install xmlstarlet
For Ubuntu: sudo apt-get install xmlstarlet

xmllint usage demos in this project

  1. --xpath
  2. --repeat
  3. --timing

xmlstarlet usage demos in this project

  1. -el
  2. -el -a
  3. -el -v
  4. -ed -d
  5. -ed -u

Running the demo

Project includes below sample xml file
books.xml

Make xmllint-demo.sh executable and run the script

./xmllint.sh data/books.xml

Make xmlstarlet-demo.sh executable and run the script

./xmlstarlet.sh data/books.xml

Releases

No releases published

Packages

No packages published

Languages