Query K-samsök/SOCH from the command line, in Bash, using XMLStarlet and XPath.
Adapted from this blog post.
Try it on Runnable Code Snippets here.
Query K-samsök/SOCH from the command line, in Perl using XPath (with simple error-checking).
Try it on Runnable Code Snippets here.