#! /bin/sh
-for d in `ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model'`
-do
- ./parse-xml $d
-done | sort -u
+
+# Parse the structure members.
+structure_members=`find unzipped* -name 'outputViewer*.xml'`
+if test -n "$1"; then
+ for d in $structure_members; do
+ ./parse-xml $d "$@"
+ done | sort | uniq -c
+fi