Skip to content

Commit d294dad

Browse files
jkhsjdhjss-heppner
authored andcommitted
readme: fix the getting started
Fix #124
1 parent fd71ab9 commit d294dad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,11 +115,11 @@ submodel.submodel_element.add(property)
115115

116116
Serialize the `Submodel` to XML:
117117
```python
118-
from basyx.aas.adapter import write_aas_xml_file
118+
from basyx.aas.adapter.xml import write_aas_xml_file
119119

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

0 commit comments

Comments
 (0)