레퍼런스 getChildren()

getChildren()

Returns an array with the element's child elements as new p5.XML objects.

The parameter, name, is optional. If a string is passed, as in myXML.getChildren('cat'), then the method will only return child elements with the tag <cat></cat>.

예제

구문

getChildren([name])

매개변수

name
String:

name of the elements to return.

Returns

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

관련 레퍼런스