Function: clearWorkspaceAndLoadFromXml()
function clearWorkspaceAndLoadFromXml(xml, workspace): string[];
Defined in: packages/blockly/core/xml.ts:429
Clear the given workspace then decode an XML DOM and create blocks on the workspace.
Parameters
| Parameter | Type | Description |
|---|---|---|
xml | Element | XML DOM. |
workspace | WorkspaceSvg | The workspace. |
Returns
string[]
An array containing new block IDs.