0

I have been trying to convert a dataset file in XML format to JSON. I tried many solutions, I always got the same error

ExpatError: not well-formed (invalid token): line 67667, column 103

I tried untangle, xmltodict, pandas_read_xml as pdx

This is my code for my attempt with pandas_read_xml as pdx which was the last solution:

df = pdx.read_xml("Ryiadh_utf_8.xml")```
ahad
  • 11
  • 2
  • Parse your Ryiadh_utf_8.xml file through an XML validator. May you can use an online tool like xmlvalidation, to see if there are any errors in your XML file. – Shaida Muhammad Feb 14 '22 at 11:24
  • 1
    Please explain how you question is related to tag `data-science-experience` which you have used – Daweo Feb 14 '22 at 11:24
  • Well, knowing the contents of your file will certainly help! – NeoMent Feb 14 '22 at 11:41

0 Answers0