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