Documentation / @sw-file-lib/xml / parseSwXml
Function: parseSwXml()
ts
function parseSwXml(input: string | Uint8Array<ArrayBufferLike>): SwXmlNodeList;Defined in: packages/xml/src/parser/index.ts:76
Parses a Stormworks XML document into a node tree.
Intended for internal use. Most applications never need it, but it can improve performance when parsing XML with multiple root elements by calling parseSwXml() only once and passing to x.ElementSchema.parse or x.ElementSchema.safeParse.
Parameters
| Parameter | Type |
|---|---|
input | string | Uint8Array<ArrayBufferLike> |