Documentation / @sw-file-lib/xml / safeParseVehicleXml
Function: safeParseVehicleXml()
ts
function safeParseVehicleXml(input: string | Uint8Array<ArrayBuffer>, options?: SchemaParseOptions): Result<Vehicle, SchemaError>;Defined in: packages/xml/src/schemas/index.ts:109
Parses a Stormworks vehicle XML document without throwing schema errors.
Parameters
| Parameter | Type |
|---|---|
input | string | Uint8Array<ArrayBuffer> |
options? | SchemaParseOptions |