Stay organized with collections Save and categorize content based on your preferences.

blockly > utils > xml

utils.xml namespace

Functions

Function Description
createElement(tagName) Create DOM element for XML.
createTextNode(text) Create text element for XML.
domToText(dom) Converts a DOM structure into plain text. Currently the text format is fairly ugly: all one line with no whitespace.
getDocument() Get the document object to use for XML serialization.
setDocument(document) Get the document object to use for XML serialization.
textToDomDocument(text) Converts an XML string into a DOM tree.

Variables

Variable Description
NAME_SPACE Namespace for Blockly's XML.