41 if (!
$xml->hasAttribute(
'namespace')) {
42 throw new \Exception(
'Missing namespace attribute on AdditionalMetadataLocation element.');
44 $this->
namespace =
$xml->getAttribute('namespace');
46 $this->location =
$xml->textContent;
57 assert(is_string($this->
namespace));
58 assert(is_string($this->location));
61 $e->setAttribute(
'namespace', $this->
namespace);
static addString(\DOMElement $parent, $namespace, $name, $value)
Append string element.
const NS_MD
The namespace for the SAML 2 metadata.