User`s guide

mlreportgen.dom.CustomElement class
12-63
mlreportgen.dom.CustomElement class
Package: mlreportgen.dom
Custom element of document
Description
Use a custom element to extend the DOM API. You can create a custom HTML or
Microsoft Word element that provides functionality not yet included in the DOM API.
Construction
customElementObj = CustomElement() creates an empty element.
customElementObj = CustomElement(name) creates a custom element having the
specified name.
Input Arguments
name — Custom element name
string
Name of an element supported by the type of document to which this custom element is
appended. For example, specify 'div' for a custom HTML div element or 'w:p' for a
custom Word paragraph element.
Output Arguments
customElementObj — Custom element
mlreportgen.dom.CustomElement object
Custom element, represented by an mlreportgen.dom.CustomElement object.
Properties
CustomAttributes — Custom attributes of document element
array of mlreportgen.dom.CustomAttribute objects