Referencia removeChild()

removeChild()

Removes the first matching child element.

The parameter, name, is the child element to remove. If a string is passed, as in myXML.removeChild('cat'), then the first child element with the tag <cat></cat> will be removed. If a number is passed, as in myXML.removeChild(1), then the child element at that index will be removed.

Ejemplos

Sintaxis

removeChild(name)

Parámetros

name
String|Integer:

name or index of the child element to remove.

Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.XML.js and open a pull request!

Referencias Relacionadas