private function buildArrayFromNode(SimpleXMLElement $node): array
    {
        $array = [];
        foreach ($node->children() as $child) {
            if ((string) $child !== '') {
                $array[] = (string) $child;
            }
        }

        return $array;
    }
private function buildArrayFromNode(SimpleXMLElement $node): array
    {
        $array = [];
        foreach ($node->children() as $child) {
            if ((string) $child !== '') {
                $array[] = (string) $child;
            }
        }

        return $array;
    }
private function buildArrayFromNode ( SimpleXMLElement $ node ) : array { $ array = [ ] ; foreach ( $ node -> children ( ) as $ child ) { if ( ( string ) $ child !== '' ) { $ array [ ] = ( string ) $ child ; } } return $ array ; }
Loops over a node and fills an array with the found children.
Loops over a node and fills an array with the found children .