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