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
| Parameter | Type |
|---|---|
data | VehicleImmutable |
options? | XmlWriterOptions |
Returns
string
Throws
SchemaSerializeError when the vehicle cannot be serialized.