When you parse multiple records in a record list and attempt to convert it to XML, the resulting XML must always have a global root node in order to be valid (one single node from which all other nodes are descendants). You can use the AddRootNode flag to ensure this.