shell script to parse xml-dump