public function toXML(DOMElement $parent = null) : DOMElement
    {
        $element = parent::toXML($parent);

        if ($this->Format !== null) {
            $element->setAttribute('Format', $this->Format);
        }

        if ($this->SPProvidedID !== null) {
            $element->setAttribute('SPProvidedID', $this->SPProvidedID);
        }

        $value = $element->ownerDocument->createTextNode($this->value);
        $element->appendChild($value);

        return $element;
    }
public function toXML(DOMElement $parent = null) : DOMElement
    {
        $element = parent::toXML($parent);

        if ($this->Format !== null) {
            $element->setAttribute('Format', $this->Format);
        }

        if ($this->SPProvidedID !== null) {
            $element->setAttribute('SPProvidedID', $this->SPProvidedID);
        }

        $value = $element->ownerDocument->createTextNode($this->value);
        $element->appendChild($value);

        return $element;
    }
public function toXML ( DOMElement $ parent = null ) : DOMElement { $ element = parent :: toXML ( $ parent ) ; if ( $ this -> Format !== null ) { $ element -> setAttribute ( 'Format' , $ this -> Format ) ; } if ( $ this -> SPProvidedID !== null ) { $ element -> setAttribute ( 'SPProvidedID' , $ this -> SPProvidedID ) ; } $ value = $ element -> ownerDocument -> createTextNode ( $ this -> value ) ; $ element -> appendChild ( $ value ) ; return $ element ; }
Convert this NameIDType to XML.

@param \DOMElement $parent The element we are converting to XML.
@return \DOMElement The XML element after adding the data corresponding to this NameIDType.
Convert this NameIDType to XML .