*! version 1.6.0 16Jan2026

unicefdata_xmltoyaml_py — Python implementation of XML-to-YAML conversion

Syntax

unicefdata_xmltoyaml_py,
input(string)
output(string)
[noisily
]

Description

unicefdata_xmltoyaml_py is the Python implementation of XML-to-YAML conversion
for SDMX structure definitions.

This command is a high-performance alternative to unicefdata_xmltoyaml when
Python is available. It provides faster conversion for large dataflow structures.

Options

input(string) is required. Path to input XML file.

output(string) is required. Path to output YAML file.

noisily displays conversion progress messages.

Examples

Run Python-based conversion:

. unicefdata_xmltoyaml_py, input(structure.xml) output(structure.yml)

Technical Details

Requires Python 3.6+ with yaml and xml.etree.ElementTree modules.
Falls back to Stata implementation if Python is unavailable.

Author

João Pedro Azevedo, UNICEF

https://jpazvd.github.io

}

See also

unicefdata_xmltoyaml

unicefdata_sync