Stay organized with collections
Save and categorize content based on your preferences.
blockly > Events > BlockCreate > xml
Events.BlockCreate.xml property
The XML representation of the created block(s).
Signature:
xml?: Element | DocumentFragment;
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["The `xml` property of a Blockly.Events.BlockCreate instance represents the XML of the newly created block or blocks."],["This property is optional and contains either an Element or a DocumentFragment representing the block's structure in XML format."],["It is used to store and potentially restore the state of the created block within the Blockly workspace."]]],["The `Events.BlockCreate.xml` property represents the XML structure of newly created blocks. It can be an `Element` or a `DocumentFragment`, detailing the block's configuration and structure. This property holds the essential XML data that defines the created block(s) within the Blockly environment, allowing for block representation and manipulation via XML format.\n"]]