Created
May 22, 2020 21:48
-
-
Save Farrukhraz/02dcd56e1b593e49de7a74d7e60ba39c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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