fixed xml heading and added validation against DTD