Skip to content

Commit

Permalink
readme: fix the getting started
Browse files Browse the repository at this point in the history
Fix #124
  • Loading branch information
jkhsjdhjs authored and s-heppner committed Dec 12, 2023
1 parent fd71ab9 commit d294dad
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 @@ -115,11 +115,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 d294dad

Please sign in to comment.