Skip to main content

Home > @jsplumbtoolkit/browser-ui > xml > createElement

xml.createElement() method#

Creates an XML element.

Signature:

static createElement(name: string, attributes: any, text: string): any;

Parameters#

ParameterTypeDescription
namestringTag name of the element to create.
attributesanyOptional map of attribute names and values.
textstringOptional text for the element.

Returns:

any

An XML element.