blockly > Xml > workspaceToDom

Xml.workspaceToDom() function

Encode a block tree as XML.

Signature:

export declare function workspaceToDom(workspace: Workspace, opt_noId?: boolean): Element;

Parameters

Parameter Type Description
workspace Workspace The workspace containing blocks.
opt_noId boolean (Optional) True if the encoder should skip the block IDs.

Returns:

Element

XML DOM element.