write_xml_to_json¶
Converts an XML file to JSON, keeping the nested structure.
- Example command line:
python write_xml_to_json.py Aanbestedingen_2017-01-01_tot_2018-05-02.xml data
usage: write_xml_to_json [-h] full_path output_folder
Positional Arguments¶
full_path | Add full filename and path to XML, for example data/myXML.xml |
output_folder | Specify the desired output folder path, for example: app/data |
functions¶
-
datapunt_processing.extract.write_xml_to_json.
parser
()¶ Parser function to run arguments from commandline and to add description to sphinx docs. To see possible styling options: https://pythonhosted.org/an_example_pypi_project/sphinx.html
-
datapunt_processing.extract.write_xml_to_json.
xml2json
(file_input, output_name)¶ Args: - full path name - full output file name