function elementsToP5XML(elements) {
            var arr = [];
            for (var i = 0; i < elements.length; i++) {
              arr.push(new _main.default.XML(elements[i]));
            }
            return arr;
          }
Returns all of the element's children as an array of <a href="#/p5.XML">p5.XML</a> objects. When
the name parameter is specified, then it will return all children that match
that name.

@method getChildren
@param {String} [name] element name
@return {p5.XML[]} children of the element
@example&lt;animal
<div class='norender'><code>
// The following short XML file called "mammals.xml" is parsed
// in the code below.
//
// <?xml version="1.0"?>
// &lt;mammals&gt;
//   &lt;animal id="0" species="Capra hircus">Goat&lt;/animal&gt;
//   &lt;animal id="1" species="Panthera pardus">Leopard&lt;/animal&gt;
//   &lt;animal id="2" species="Equus zebra">Zebra&lt;/animal&gt;
// &lt;/mammals&gt;

let xml;

function preload() {
  xml = loadXML('assets/mammals.xml');
}

function setup() {
  let animals = xml.getChildren('animal');

  for (let i = 0; i < animals.length; i++) {
    print(animals[i].getContent());
  }
}

// Sketch prints:
// "Goat"
// "Leopard"
// "Zebra"
</code></div>