public function createElement($name, $value = null, array $attributes = [])
    {
        $node = $this->document->createElement($name);

        return new Element($node, $value, $attributes);
    }
public function createElement($name, $value = null, array $attributes = [])
    {
        $node = $this->document->createElement($name);

        return new Element($node, $value, $attributes);
    }
public function createElement ( $ name , $ value = null , array $ attributes = [ ] ) { $ node = $ this -> document -> createElement ( $ name ) ; return new Element ( $ node , $ value , $ attributes ) ; }
Creates a new element node.

@param string      $name       The tag name of the element
@param string|null $value      The value of the element
@param array       $attributes The attributes of the element

@return \DiDom\Element created element
Creates a new element node .