shell srcipt for parsing xml