#!/bin/sh

while read -r XPATH ; do
    ./xmlstarlet sel --text -t -i "$XPATH" -v "$XPATH" --nl xml/foo.xml
done < sel-xpath.input
