I would check if xmlstarlet is available before starting the script