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
| Parameter | Type |
|---|---|
input | string | Uint8Array<ArrayBuffer> |
options? | SchemaParseOptions |
Returns
Throws
SchemaError when the XML content does not match the vehicle schema.