public function setElementBy($element, $value, $nodeValue)
    {
        $xql = "//*[@$element='$value']";

        if (is_object($nodeValue)) {
            $result = $this->query($xql)->item(0)->appendChild($this->importNode($nodeValue, true));
        } else {
            $result = $this->query($xql)->item(0)->nodeValue = $nodeValue;
        }

        return $result;
    }
public function setElementBy($element, $value, $nodeValue)
    {
        $xql = "//*[@$element='$value']";

        if (is_object($nodeValue)) {
            $result = $this->query($xql)->item(0)->appendChild($this->importNode($nodeValue, true));
        } else {
            $result = $this->query($xql)->item(0)->nodeValue = $nodeValue;
        }

        return $result;
    }
public function setElementBy ( $ element , $ value , $ nodeValue ) { $ xql = "//*[@$element='$value']" ; if ( is_object ( $ nodeValue ) ) { $ result = $ this -> query ( $ xql ) -> item ( 0 ) -> appendChild ( $ this -> importNode ( $ nodeValue , true ) ) ; } else { $ result = $ this -> query ( $ xql ) -> item ( 0 ) -> nodeValue = $ nodeValue ; } return $ result ; }
Setter for changing a element

@todo put in __call
Setter for changing a element