System DataSet to todataset, IndexError: Row 0 doesn’t have the same number of columns as header list

For xml to dataset, I have a working example here:
forum | xml file to Ignition dataset