src/dom/Dom.php
public static function getChildElements($node)
    {
        $ret = array();
        $nodes = $node->childNodes;
        foreach ($nodes as $node) {
            if ($node instanceof DOMElement) {
                array_push($ret, $node);
            }
        }
        return $ret;
    }
public static function getChildElements($node)
    {
        $ret = array();
        $nodes = $node->childNodes;
        foreach ($nodes as $node) {
            if ($node instanceof DOMElement) {
                array_push($ret, $node);
            }
        }
        return $ret;
    }
public static function getChildElements ( $ node ) { $ ret = array ( ) ; $ nodes = $ node -> childNodes ; foreach ( $ nodes as $ node ) { if ( $ node instanceof DOMElement ) { array_push ( $ ret , $ node ) ; } } return $ ret ; }
Gets child elements of a given node.

This function returns all subnodes that are instance of DOMElement. It
ignores the rest of the subnodes.

@param DOMNode $node DOMNode object

@return array of DOMNode objects
Gets child elements of a given node .