So I\'m trying to serialize a java object with a list to an xml file but the problem with the format that I\'m trying to do is it requires the list to have dynamic element n