From 5255a1fae3aac923d10ce20f091c256b81a3e6d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20M=C3=B6ller?= Date: Fri, 8 Dec 2023 15:02:20 +0100 Subject: [PATCH] readme: fix the getting started Fix #124 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4793b3241..a21cc7b08 100644 --- a/README.md +++ b/README.md @@ -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) ```