Skip to content

Instantly share code, notes, and snippets.

@Farrukhraz
Created May 22, 2020 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Farrukhraz/02dcd56e1b593e49de7a74d7e60ba39c to your computer and use it in GitHub Desktop.
Save Farrukhraz/02dcd56e1b593e49de7a74d7e60ba39c to your computer and use it in GitHub Desktop.
generateDS.py -o scenario.py -f --super=scenario C:\path\to\file\Scenario.xsd
# Если нужен сабмодуль (не нужная вещь)
generateDS.py -o scenario.py -s scenariosubs.py -f --super=scenario C:\path\to\file\Scenario.xsd
from scenario import parse
with open(xml_file_path, 'rb') as f:
root = parse(f, silence=True)
root.Some_el_name
root.get_schemeVersion()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment