Hello everyone,
I'm trying to import large *.xml files (around 250MB; version 1.0, ISO-8859-1 encoding; see below for full file header) to Stata 12 on a Mac (I could also access a Windows machine with Stata 14 if that would make a difference).
I already tried xmluse and usexmlex without success.
I also tried to first import the files to Excel and then bring them to Stata. This, however, proved to a) be very tedious (Excel Mac doesn't support XML import, so I first have to slice the files, import them to Excel on one of my Universities PCs (32bit) and then bring them to my Laptop) and b) prone to mistakes (I get different column names in Excel and then end up with too many columns in Stata -- I could correct those mistakes manually, the risk of not getting rid of all errors appears too high, though).
Is there any good way to import those files directly to Stata?
------------------------------
The header of the files reads:
If it is of any help, I downloaded the data here (website on French):
http://www.prix-carburants.gouv.fr/rubrique/opendata/
------------------------------
I would be very grateful for any help!
Thank you in advance!
Best,
Patrick
I'm trying to import large *.xml files (around 250MB; version 1.0, ISO-8859-1 encoding; see below for full file header) to Stata 12 on a Mac (I could also access a Windows machine with Stata 14 if that would make a difference).
I already tried xmluse and usexmlex without success.
I also tried to first import the files to Excel and then bring them to Stata. This, however, proved to a) be very tedious (Excel Mac doesn't support XML import, so I first have to slice the files, import them to Excel on one of my Universities PCs (32bit) and then bring them to my Laptop) and b) prone to mistakes (I get different column names in Excel and then end up with too many columns in Stata -- I could correct those mistakes manually, the risk of not getting rid of all errors appears too high, though).
Is there any good way to import those files directly to Stata?
------------------------------
The header of the files reads:
Code:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?><pdv_liste>
http://www.prix-carburants.gouv.fr/rubrique/opendata/
------------------------------
I would be very grateful for any help!
Thank you in advance!
Best,
Patrick
Comment