I am having an XML data which also contains HTML data. I'm trying to dump this XML data to one cell in a csv file which also contains other columns. Right now, it is splitting itself and coming in different(adjacent) cells. Therefore reading the csv using pandas throws an error
Error tokenizing data. C error: Expected 94 fields in line 3, saw 221
I also looked into a similar scenario. But it didn't help because it was from a database. Therefore the workaround functionalities will be different.
I am not looking to parse the XML data. I just want to save the entire XML data into one cell in a csv file.
Moreover, I cannot share the data snapshot for confidentiality reasons but I hope the issue is conveyed.
Any help is appreciated.