src/wcmf/lib/util/DOMUtils.php
public static function getChildNodesOfName(\DOMElement $element, $elementName) {
    $result = [];
    foreach ($element->childNodes as $child) {
      if ($child->nodeName == $elementName) {
        $result[] = $child;
      }
    }
    return $result;
  }
public static function getChildNodesOfName(\DOMElement $element, $elementName) {
    $result = [];
    foreach ($element->childNodes as $child) {
      if ($child->nodeName == $elementName) {
        $result[] = $child;
      }
    }
    return $result;
  }
public static function getChildNodesOfName ( \ DOMElement $ element , $ elementName ) { $ result = [ ] ; foreach ( $ element -> childNodes as $ child ) { if ( $ child -> nodeName == $ elementName ) { $ result [ ] = $ child ; } } return $ result ; }
Get the child nodes of a given element name
@param \DOMElement $element
@param $elementName
@return \DOMNodeList[]
Get the child nodes of a given element name