Skip to content

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

Function: parseComponentDefinitionXml() ​

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

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

Parses a Stormworks component definition XML document.

Parameters ​

ParameterType
inputstring | Uint8Array<ArrayBuffer>
options?SchemaParseOptions

Returns ​

ComponentDefinition

Throws ​

SchemaError when the XML content does not match the component definition schema.