Returns the first matching child element as a new p5.XML object.
The parameter, name
, is optional. If a string is passed, as in myXML.getChild('cat')
, then the first child element with the tag <cat></cat>
will be returned. If a number is passed, as in myXML.getChild(1)
, then the child element at that index will be returned.
उदाहरण
सिंटैक्स
getChild(name)
पैरामीटर्स
name
String|Integer:
element name or index.
Returns
p5.XML: child element.
This page is generated from the comments in src/io/p5.XML.js . Please feel free to edit it and submit a pull request!