Timeline for Python script to parse XML file into Json
Current License: CC BY-SA 4.0
15 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 14, 2021 at 15:00 | history | tweeted | twitter.com/StackCodeReview/status/1393219568357806082 | ||
May 14, 2021 at 5:05 | vote | accept | Patricio Cabo | ||
May 14, 2021 at 0:30 | answer | added | Reinderien | timeline score: 2 | |
May 13, 2021 at 21:49 | history | edited | Reinderien |
edited tags
|
|
May 13, 2021 at 19:14 | comment | added | Patricio Cabo | In this repository you will find this complete script and both xml files github.com/patocabo/xml-json | |
May 13, 2021 at 18:59 | comment | added | Patricio Cabo | Thats because, I have to do one parser for tow differentes XML. Code is too long to write it all. I would love to sent it to you complete. I tried to use same script for both files, but they are so different (in syntaxis and elements level) so I had to make 1 scritp with both. I mean its probably improvable but i'm a bit lost. If you provideme an email address or something I could send you the script and both XML | |
May 13, 2021 at 18:27 | comment | added | Reinderien |
Why does the presence of Document early-terminate your code?
|
|
May 13, 2021 at 17:31 | comment | added | Patricio Cabo | It is a test I should pass for a job. The idea is they give me this XML and I have to parsed it to a JSON without libraries such objetify or xmltodict or something like that. Also I have to modify the file so the output is formatted as I said | |
May 13, 2021 at 16:43 | comment | added | Reinderien | And why is this in an XML file on disk? It looks like a SOAP response. Can't it just be parsed in memory? | |
May 13, 2021 at 16:40 | comment | added | Reinderien | Why are you writing to a JSON file? What's going to consume it? | |
May 13, 2021 at 3:37 | history | edited | Patricio Cabo | CC BY-SA 4.0 |
I have to delete a few of RowInfo elements because the file is too long
|
May 13, 2021 at 3:31 | comment | added | Patricio Cabo | Its a bit long, I could try | |
May 13, 2021 at 3:16 | comment | added | Reinderien | Can you show an excerpt of the XML you're parsing? | |
May 13, 2021 at 2:20 | review | First posts | |||
May 13, 2021 at 4:12 | |||||
May 13, 2021 at 2:18 | history | asked | Patricio Cabo | CC BY-SA 4.0 |