| @@ 1490-1497 (lines=8) @@ | ||
| 1487 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:nil', 'true'); |
|
| 1488 | } |
|
| 1489 | ||
| 1490 | if ($value instanceof \DOMNodeList) { |
|
| 1491 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1492 | $node = $document->importNode($value->item($i), true); |
|
| 1493 | $attributeValue->appendChild($node); |
|
| 1494 | } |
|
| 1495 | } else { |
|
| 1496 | $attributeValue->appendChild($document->createTextNode($value)); |
|
| 1497 | } |
|
| 1498 | } |
|
| 1499 | } |
|
| 1500 | } |
|
| @@ 1544-1551 (lines=8) @@ | ||
| 1541 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:type', $type); |
|
| 1542 | } |
|
| 1543 | ||
| 1544 | if ($value instanceof \DOMNodeList) { |
|
| 1545 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1546 | $node = $document2->importNode($value->item($i), true); |
|
| 1547 | $attributeValue->appendChild($node); |
|
| 1548 | } |
|
| 1549 | } else { |
|
| 1550 | $attributeValue->appendChild($document2->createTextNode($value)); |
|
| 1551 | } |
|
| 1552 | } |
|
| 1553 | /*Once the attribute nodes are built, the are encrypted*/ |
|
| 1554 | $EncAssert = new XMLSecEnc(); |
|