blockly > Xml > domToWorkspace

Xml.domToWorkspace() function

Decode an XML DOM and create blocks on the workspace.

Signature:

export declare function domToWorkspace(xml: Element, workspace: Workspace): string[];

Parameters

Parameter Type Description
xml Element XML DOM.
workspace Workspace The workspace.

Returns:

string[]

An array containing new block IDs.