public function toXML(DOMElement $parent) : DOMElement
    {
        $doc = $parent->ownerDocument;

        $e = $doc->createElementNS(XMLSecurityDSig::XMLDSIGNS, 'ds:X509Data');
        $parent->appendChild($e);

        /** @var \SAML2\XML\Chunk|\SAML2\XML\ds\X509Certificate $n */
        foreach ($this->getData() as $n) {
            $n->toXML($e);
        }

        return $e;
    }
public function toXML(DOMElement $parent) : DOMElement
    {
        $doc = $parent->ownerDocument;

        $e = $doc->createElementNS(XMLSecurityDSig::XMLDSIGNS, 'ds:X509Data');
        $parent->appendChild($e);

        /** @var \SAML2\XML\Chunk|\SAML2\XML\ds\X509Certificate $n */
        foreach ($this->getData() as $n) {
            $n->toXML($e);
        }

        return $e;
    }
public function toXML ( DOMElement $ parent ) : DOMElement { $ doc = $ parent -> ownerDocument ; $ e = $ doc -> createElementNS ( XMLSecurityDSig :: XMLDSIGNS , 'ds:X509Data' ) ; $ parent -> appendChild ( $ e ) ; /** @var \SAML2\XML\Chunk|\SAML2\XML\ds\X509Certificate $n */ foreach ( $ this -> getData ( ) as $ n ) { $ n -> toXML ( $ e ) ; } return $ e ; }
Convert this X509Data element to XML.

@param \DOMElement $parent The element we should append this X509Data element to.
@return \DOMElement
Convert this X509Data element to XML .