protected function addNode(DOMElement $element, $key, $value)
    {
        if ($this->replaceSpacesByUnderScoresInKeyNames) {
            $key = str_replace(' ', '_', $key);
        }

        $child = $this->document->createElement($key);
        $element->appendChild($child);
        $this->convertElement($child, $value);
    }
protected function addNode(DOMElement $element, $key, $value)
    {
        if ($this->replaceSpacesByUnderScoresInKeyNames) {
            $key = str_replace(' ', '_', $key);
        }

        $child = $this->document->createElement($key);
        $element->appendChild($child);
        $this->convertElement($child, $value);
    }
protected function addNode ( DOMElement $ element , $ key , $ value ) { if ( $ this -> replaceSpacesByUnderScoresInKeyNames ) { $ key = str_replace ( ' ' , '_' , $ key ) ; } $ child = $ this -> document -> createElement ( $ key ) ; $ element -> appendChild ( $ child ) ; $ this -> convertElement ( $ child , $ value ) ; }
Add node.

@param DOMElement $element
@param string $key
@param string|string[] $value
Add node .