Skip to content

Commit

Permalink
readme: fix the getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
jkhsjdhjs authored and s-heppner committed Dec 11, 2023
1 parent fb884bf commit 5255a1f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ submodel.submodel_element.add(property)

Serialize the `Submodel` to XML:
```python
from basyx.aas.adapter import write_aas_xml_file
from basyx.aas.adapter.xml import write_aas_xml_file

data: model.DictObjectStore[model.Identifiable] = model.DictObjectStore()
data.add(submodel)
with open('Simple_Submodel.xml', 'w', encoding='utf-8') as f:
with open('Simple_Submodel.xml', 'wb') as f:
write_aas_xml_file(file=f, data=data)
```

Expand Down

0 comments on commit 5255a1f

Please sign in to comment.