Rows are now being written to the XML and id is incrementing