Skip to content

Documentation / @sw-file-lib/xml / serializeMicrocontrollerXml

Function: serializeMicrocontrollerXml() ​

ts
function serializeMicrocontrollerXml(data: MicroprocessorImmutable, options?: XmlWriterOptions): string;

Defined in: packages/xml/src/schemas/index.ts:166

Serializes a standalone Stormworks microcontroller into an XML document rooted at <microprocessor>.

Parameters ​

ParameterType
dataMicroprocessorImmutable
options?XmlWriterOptions

Returns ​

string

Throws ​

SchemaSerializeError when the microcontroller cannot be serialized.