Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Merge requests
!13
F documentation data models
Code
Review changes
Check out branch
Open in Workspace
Download
Patches
Plain diff
Expand sidebar
Merged
F documentation data models
f-documentation-data-models
into
dev
Overview
6
Commits
7
Pipelines
6
Changes
4
All threads resolved!
Show all comments
Merged
F documentation data models
Alexander Schlemmer
requested to merge
f-documentation-data-models
into
dev
Jun 28, 2021
Overview
6
Commits
7
Pipelines
6
Changes
4
All threads resolved!
Show all comments
0
0
Merge request reports
Compare
dev
version 6
eaefb51b
Jul 20, 2021
version 5
7d39d92e
Jul 20, 2021
version 4
72073795
Jun 28, 2021
version 3
72073795
Jun 28, 2021
version 2
78e8978e
Jun 28, 2021
version 1
f887c410
Jun 28, 2021
dev (base)
and
latest version
latest version
c5b576e1
7 commits,
Jul 20, 2021
version 6
eaefb51b
6 commits,
Jul 20, 2021
version 5
7d39d92e
5 commits,
Jul 20, 2021
version 4
72073795
4 commits,
Jun 28, 2021
version 3
72073795
8 commits,
Jun 28, 2021
version 2
78e8978e
7 commits,
Jun 28, 2021
version 1
f887c410
6 commits,
Jun 28, 2021
4 files
+
87
−
1
Side-by-side
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
4
src/caosdb/yamlapi.py
+
8
−
0
View file @ c5b576e1
Edit in single-file editor
Open in Web IDE
Show full file
@@ -73,6 +73,14 @@ def dict_to_xml(d):
@@ -73,6 +73,14 @@ def dict_to_xml(d):
def
yaml_to_xml
(
yamlstr
):
def
yaml_to_xml
(
yamlstr
):
"""
Load a yaml document from yamlstr and converts it to XML.
Parameters
----------
yamlstr : str
The string to load the yaml document from.
"""
return
dict_to_xml
(
yaml
.
load
(
yamlstr
))
return
dict_to_xml
(
yaml
.
load
(
yamlstr
))
Loading