xml parsing logic
still fixing xml parsing problem
touch up output