Function: domToWorkspace()
function domToWorkspace(xml, workspace): string[];
Defined in: packages/blockly/core/xml.ts:447
Decode an XML DOM and create blocks on the workspace.
Parameters
| Parameter | Type | Description |
|---|---|---|
xml | Element | XML DOM. |
workspace | Workspace | The workspace. |
Returns
string[]
An array containing new block IDs.