8 echo "usage: $0 [options] <query> <file>"
10 echo "-c counting mode"
11 echo "-h display this help"
24 elif [ "$QUERY" == "" ]
35 echo "error: missing filename"
41 if [ "$COUNT" == "0" ]
43 xmlstarlet sel -t -m "$QUERY" -c . -n "$FILE"
45 xmlstarlet sel -t -v "count($QUERY)" "$FILE"