I generated XML from sql query however the XML leaves out most of the data (7/55)records and does not end well with closing tags. I expected the XML to show all the data. And lo