Skip to content

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

Function: parseVehicleXml() ​

ts
function parseVehicleXml(input: string | Uint8Array<ArrayBuffer>, options?: SchemaParseOptions): Vehicle;

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

Parses a Stormworks vehicle XML document.

Parameters ​

ParameterType
inputstring | Uint8Array<ArrayBuffer>
options?SchemaParseOptions

Returns ​

Vehicle

Throws ​

SchemaError when the XML content does not match the vehicle schema.