Last active
October 7, 2020 14:53
-
-
Save typelogic/4078459ea3dea03cd558e71ee95b9f62 to your computer and use it in GitHub Desktop.
xmlstarlet tips
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xmlstarlet sel -N x="http://standards.iso.org/iso-iec/19785/-3/ed-2/" -t -v "count(//x:BDB)" /tmp/x.xml | |
xmlstarlet sel -N x="http://standards.iso.org/iso-iec/19785/-3/ed-2/" -t -m "//x:BDBInfo" -v "x:Type" -n /tmp/x.xml | |
xmlstarlet sel -N x="http://standards.iso.org/iso-iec/19785/-3/ed-2/" -t -c "//x:BDBInfo[x:Type='Face']/../x:BDB" -n /tmp/x.xml | |
xmlstarlet sel -N x="http://standards.iso.org/iso-iec/19785/-3/ed-2/" -t -v "//x:BDBInfo[x:Type='Face']/../x:BDB" /tmp/x.xml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment