Modified bash script to generate XML for stanford data