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

        if (is_bool($this->WantAuthnRequestsSigned)) {
            $e->setAttribute('WantAuthnRequestsSigned', $this->WantAuthnRequestsSigned ? 'true' : 'false');
        }

        foreach ($this->SingleSignOnService as $ep) {
            $ep->toXML($e, 'md:SingleSignOnService');
        }

        foreach ($this->NameIDMappingService as $ep) {
            $ep->toXML($e, 'md:NameIDMappingService');
        }

        foreach ($this->AssertionIDRequestService as $ep) {
            $ep->toXML($e, 'md:AssertionIDRequestService');
        }

        Utils::addStrings($e, Constants::NS_MD, 'md:AttributeProfile', false, $this->AttributeProfile);

        foreach ($this->Attribute as $a) {
            $a->toXML($e);
        }

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

        if (is_bool($this->WantAuthnRequestsSigned)) {
            $e->setAttribute('WantAuthnRequestsSigned', $this->WantAuthnRequestsSigned ? 'true' : 'false');
        }

        foreach ($this->SingleSignOnService as $ep) {
            $ep->toXML($e, 'md:SingleSignOnService');
        }

        foreach ($this->NameIDMappingService as $ep) {
            $ep->toXML($e, 'md:NameIDMappingService');
        }

        foreach ($this->AssertionIDRequestService as $ep) {
            $ep->toXML($e, 'md:AssertionIDRequestService');
        }

        Utils::addStrings($e, Constants::NS_MD, 'md:AttributeProfile', false, $this->AttributeProfile);

        foreach ($this->Attribute as $a) {
            $a->toXML($e);
        }

        return $e;
    }
public function toXML ( DOMElement $ parent ) : DOMElement { $ e = parent :: toXML ( $ parent ) ; if ( is_bool ( $ this -> WantAuthnRequestsSigned ) ) { $ e -> setAttribute ( 'WantAuthnRequestsSigned' , $ this -> WantAuthnRequestsSigned ? 'true' : 'false' ) ; } foreach ( $ this -> SingleSignOnService as $ ep ) { $ ep -> toXML ( $ e , 'md:SingleSignOnService' ) ; } foreach ( $ this -> NameIDMappingService as $ ep ) { $ ep -> toXML ( $ e , 'md:NameIDMappingService' ) ; } foreach ( $ this -> AssertionIDRequestService as $ ep ) { $ ep -> toXML ( $ e , 'md:AssertionIDRequestService' ) ; } Utils :: addStrings ( $ e , Constants :: NS_MD , 'md:AttributeProfile' , false , $ this -> AttributeProfile ) ; foreach ( $ this -> Attribute as $ a ) { $ a -> toXML ( $ e ) ; } return $ e ; }
Add this IDPSSODescriptor to an EntityDescriptor.

@param \DOMElement $parent The EntityDescriptor we should append this IDPSSODescriptor to.
@return \DOMElement
Add this IDPSSODescriptor to an EntityDescriptor .