Documentation / @sw-file-lib/xml / parseMicrocontrollerXml
Function: parseMicrocontrollerXml()
ts
function parseMicrocontrollerXml(input: string | Uint8Array<ArrayBuffer>, options?: SchemaParseOptions): Microprocessor;Defined in: packages/xml/src/schemas/index.ts:144
Parses a standalone Stormworks microcontroller XML document rooted at <microprocessor>.
Definitions embedded in vehicle components use a different schema and are parsed as part of parseVehicleXml.
Parameters
| Parameter | Type |
|---|---|
input | string | Uint8Array<ArrayBuffer> |
options? | SchemaParseOptions |
Returns
Throws
SchemaError when the XML content does not match the microcontroller schema.