Skip to content

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

Function: serializeVehicleXml() ​

ts
function serializeVehicleXml(data: VehicleImmutable, options?: XmlWriterOptions): string;

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

Serializes a Stormworks vehicle into an XML document.

Parameters ​

ParameterType
dataVehicleImmutable
options?XmlWriterOptions

Returns ​

string

Throws ​

SchemaSerializeError when the vehicle cannot be serialized.