| @@ 1447-1454 (lines=8) @@ | ||
| 1444 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:nil', 'true'); |
|
| 1445 | } |
|
| 1446 | ||
| 1447 | if ($value instanceof \DOMNodeList) { |
|
| 1448 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1449 | $node = $document->importNode($value->item($i), true); |
|
| 1450 | $attributeValue->appendChild($node); |
|
| 1451 | } |
|
| 1452 | } else { |
|
| 1453 | $attributeValue->appendChild($document->createTextNode($value)); |
|
| 1454 | } |
|
| 1455 | } |
|
| 1456 | } |
|
| 1457 | } |
|
| @@ 1501-1508 (lines=8) @@ | ||
| 1498 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:type', $type); |
|
| 1499 | } |
|
| 1500 | ||
| 1501 | if ($value instanceof \DOMNodeList) { |
|
| 1502 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1503 | $node = $document2->importNode($value->item($i), true); |
|
| 1504 | $attributeValue->appendChild($node); |
|
| 1505 | } |
|
| 1506 | } else { |
|
| 1507 | $attributeValue->appendChild($document2->createTextNode($value)); |
|
| 1508 | } |
|
| 1509 | } |
|
| 1510 | /*Once the attribute nodes are built, the are encrypted*/ |
|
| 1511 | $EncAssert = new XMLSecEnc(); |
|