modified xml parser and added attribute for node for xml