Reference 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.

Examples

Syntax

removeChild(name)

Parameters

name
String|Integer:

name or index of the child element to remove.

This page is generated from the comments in src/io/p5.XML.js . Please feel free to edit it and submit a pull request!

Related References