43        if (
$xml->hasAttribute(
'Id')) {
 
   44            $this->Id = 
$xml->getAttribute(
'Id');
 
   47        for (
$n = 
$xml->firstChild; 
$n !== 
null; 
$n = 
$n->nextSibling) {
 
   48            if (!(
$n instanceof \DOMElement)) {
 
   56            switch (
$n->localName) {
 
   76    public function toXML(\DOMElement $parent)
 
   78        assert(is_null($this->Id) || is_string($this->Id));
 
   79        assert(is_array($this->
info));
 
   81        $doc = $parent->ownerDocument;
 
   84        $parent->appendChild($e);
 
   86        if (isset($this->Id)) {
 
   87            $e->setAttribute(
'Id', $this->Id);
 
   91        foreach ($this->
info as 
$n) {
 
An exception for terminatinating execution or to throw for unit testing.
__construct(\DOMElement $xml=null)
Initialize a KeyInfo element.