Referencia addChild()

addChild()

Adds a new child element and returns a reference to it.

The parameter, child, is the p5.XML object to add as a child element. For example, calling myXML.addChild(otherXML) inserts otherXML as a child element of myXML.

Ejemplos

Sintaxis

addChild(child)

Parámetros

child
p5.XML: child element to add.

Returns

p5.XML: added child element.

Referencias Relacionadas