43 if (
$xml->hasAttribute(
'Id')) {
44 $this->Id =
$xml->getAttribute(
'Id');
47 for (
$n =
$xml->firstChild;
$n !== null;
$n =
$n->nextSibling) {
56 switch (
$n->localName) {
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) {
Create styles array
The data for the language used.
__construct(\DOMElement $xml=null)
Initialize a KeyInfo element.