| @@ 1618-1625 (lines=8) @@ | ||
| 1615 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:nil', 'true'); |
|
| 1616 | } |
|
| 1617 | ||
| 1618 | if ($value instanceof \DOMNodeList) { |
|
| 1619 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1620 | $node = $document->importNode($value->item($i), true); |
|
| 1621 | $attributeValue->appendChild($node); |
|
| 1622 | } |
|
| 1623 | } else { |
|
| 1624 | $attributeValue->appendChild($document->createTextNode($value)); |
|
| 1625 | } |
|
| 1626 | } |
|
| 1627 | } |
|
| 1628 | } |
|
| @@ 1672-1679 (lines=8) @@ | ||
| 1669 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:type', $type); |
|
| 1670 | } |
|
| 1671 | ||
| 1672 | if ($value instanceof \DOMNodeList) { |
|
| 1673 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1674 | $node = $document2->importNode($value->item($i), true); |
|
| 1675 | $attributeValue->appendChild($node); |
|
| 1676 | } |
|
| 1677 | } else { |
|
| 1678 | $attributeValue->appendChild($document2->createTextNode($value)); |
|
| 1679 | } |
|
| 1680 | } |
|
| 1681 | /*Once the attribute nodes are built, the are encrypted*/ |
|
| 1682 | $EncAssert = new XMLSecEnc(); |
|