fixed it so it generates proper XML and also added line number info