While installing Xmlstarlet on Debian is easy, it is a little bit different on Mac OSX. Indeed, you have to compile the Xmlstarlet sources.
- First of all, to continue you must have installed Xcode for your Mac OS version.
Download Xmlstarlet source here and go to Xmlstarlet folder:
Once in Xmlstarlet folder you can run compilation:
sudo ./configure sudo make sudo make install
You are a winner, you have compiled Xmlstarlet on your Mac OS.