Serialise an Online Számla document from its root element name.
Element order, namespaces and cardinality all come from the generated
descriptors, so the output follows the XSD's sequence order — which is what
NAV validates against.
Parameters
rootName: string
root element name, e.g. InvoiceData or ManageInvoiceRequest
value: unknown
the document, shaped like the generated type of that root
Serialise an Online Számla document from its root element name.
Element order, namespaces and cardinality all come from the generated descriptors, so the output follows the XSD's sequence order — which is what NAV validates against.