Skip to content

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

Function: safeParseMicrocontrollerXml() ​

ts
function safeParseMicrocontrollerXml(input: string | Uint8Array<ArrayBuffer>, options?: SchemaParseOptions): Result<Microprocessor, SchemaError>;

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

Parses a standalone Stormworks microcontroller XML document without throwing schema errors.

Parameters ​

ParameterType
inputstring | Uint8Array<ArrayBuffer>
options?SchemaParseOptions

Returns ​

Result<Microprocessor, SchemaError>