Skip to content

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

Function: safeSerializeVehicleXml() ​

ts
function safeSerializeVehicleXml(data: VehicleImmutable, options?: XmlWriterOptions): Result<string, SchemaSerializeError>;

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

Serializes a Stormworks vehicle into an XML document without throwing schema errors.

Parameters ​

ParameterType
dataVehicleImmutable
options?XmlWriterOptions

Returns ​

Result<string, SchemaSerializeError>