| @@ 1464-1471 (lines=8) @@ | ||
| 1461 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:nil', 'true'); |
|
| 1462 | } |
|
| 1463 | ||
| 1464 | if ($value instanceof \DOMNodeList) { |
|
| 1465 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1466 | $node = $document->importNode($value->item($i), true); |
|
| 1467 | $attributeValue->appendChild($node); |
|
| 1468 | } |
|
| 1469 | } else { |
|
| 1470 | $attributeValue->appendChild($document->createTextNode($value)); |
|
| 1471 | } |
|
| 1472 | } |
|
| 1473 | } |
|
| 1474 | } |
|
| @@ 1518-1525 (lines=8) @@ | ||
| 1515 | $attributeValue->setAttributeNS(Constants::NS_XSI, 'xsi:type', $type); |
|
| 1516 | } |
|
| 1517 | ||
| 1518 | if ($value instanceof \DOMNodeList) { |
|
| 1519 | for ($i = 0; $i < $value->length; $i++) { |
|
| 1520 | $node = $document2->importNode($value->item($i), true); |
|
| 1521 | $attributeValue->appendChild($node); |
|
| 1522 | } |
|
| 1523 | } else { |
|
| 1524 | $attributeValue->appendChild($document2->createTextNode($value)); |
|
| 1525 | } |
|
| 1526 | } |
|
| 1527 | /*Once the attribute nodes are built, the are encrypted*/ |
|
| 1528 | $EncAssert = new XMLSecEnc(); |
|