protected function convertNode(\DOMNode $node, $path = '')
    {
        $output = [];
        if ($node->nodeType == XML_ELEMENT_NODE) {
            $nodeName = $this->parseNodeName($node);
            $output[$nodeName] = $this->parseNodeData($node, $path);
        } elseif ($node->nodeType == XML_CDATA_SECTION_NODE
            || $node->nodeType == XML_TEXT_NODE && trim($node->nodeValue) != '') {
            return $node->nodeValue;
        }

        return $output;
    }
protected function convertNode(\DOMNode $node, $path = '')
    {
        $output = [];
        if ($node->nodeType == XML_ELEMENT_NODE) {
            $nodeName = $this->parseNodeName($node);
            $output[$nodeName] = $this->parseNodeData($node, $path);
        } elseif ($node->nodeType == XML_CDATA_SECTION_NODE
            || $node->nodeType == XML_TEXT_NODE && trim($node->nodeValue) != '') {
            return $node->nodeValue;
        }

        return $output;
    }
protected function convertNode ( \ DOMNode $ node , $ path = '' ) { $ output = [ ] ; if ( $ node -> nodeType == XML_ELEMENT_NODE ) { $ nodeName = $ this -> parseNodeName ( $ node ) ; $ output [ $ nodeName ] = $ this -> parseNodeData ( $ node , $ path ) ; } elseif ( $ node -> nodeType == XML_CDATA_SECTION_NODE || $ node -> nodeType == XML_TEXT_NODE && trim ( $ node -> nodeValue ) != '' ) { return $ node -> nodeValue ; } return $ output ; }
Convert node oto array

@param \DOMNode $node The Configuration DOM node to parse
@param string   $path The path for DOM navigation

@return array|string|null
Convert node oto array