public function replaceValue($value)
    {
        foreach ($this->_children as $i => $child) {
            if ($child instanceof XMLElement) {
                continue;
            }

            unset($this->_children[$i]);
        }

        $this->setValue($value);
    }
public function replaceValue($value)
    {
        foreach ($this->_children as $i => $child) {
            if ($child instanceof XMLElement) {
                continue;
            }

            unset($this->_children[$i]);
        }

        $this->setValue($value);
    }
public function replaceValue ( $ value ) { foreach ( $ this -> _children as $ i => $ child ) { if ( $ child instanceof XMLElement ) { continue ; } unset ( $ this -> _children [ $ i ] ) ; } $ this -> setValue ( $ value ) ; }
This function will remove all text attributes from the `XMLElement` node
and replace them with the given value.

@since Symphony 2.4
@param string|XMLElement|array $value
This function will remove all text attributes from the XMLElement node and replace them with the given value .