We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 60822ef commit 90f03c9Copy full SHA for 90f03c9
drafthorse/models/document.py
@@ -123,7 +123,7 @@ def serialize(self, schema="FACTUR-X_BASIC"):
123
for ns, url in self.__namespaces.items():
124
if f"xmlns:{ns}".encode() not in xml:
125
root.set(f"xmlns:{ns}", url)
126
- return ET.tostring(root, "utf-8")
+ return ET.tostring(root, "utf-8", xml_declaration=True)
127
128
class Meta:
129
namespace = NS_RSM
0 commit comments