lib/utils/xml-utils.js
function updateProtectedValuesSalt(node, protectSaltGenerator) {
    traverse(node, function(node) {
        if (strToBoolean(node.getAttribute(XmlNames.Attr.Protected)) && node.protectedValue) {
            var newSalt = protectSaltGenerator.getSalt(node.protectedValue.byteLength);
            node.protectedValue.setSalt(newSalt);
            node.textContent = node.protectedValue.toString();
        }
    });
}
function updateProtectedValuesSalt(node, protectSaltGenerator) {
    traverse(node, function(node) {
        if (strToBoolean(node.getAttribute(XmlNames.Attr.Protected)) && node.protectedValue) {
            var newSalt = protectSaltGenerator.getSalt(node.protectedValue.byteLength);
            node.protectedValue.setSalt(newSalt);
            node.textContent = node.protectedValue.toString();
        }
    });
}
function updateProtectedValuesSalt ( node , protectSaltGenerator ) { traverse ( node , function ( node ) { if ( strToBoolean ( node . getAttribute ( XmlNames . Attr . Protected ) ) && node . protectedValue ) { var newSalt = protectSaltGenerator . getSalt ( node . protectedValue . byteLength ) ; node . protectedValue . setSalt ( newSalt ) ; node . textContent = node . protectedValue . toString ( ) ; } } ) ; }
Updates protected values salt for all nodes in tree which have protected values assigned
@param {Node} node
@param {ProtectSaltGenerator} protectSaltGenerator
Updates protected values salt for all nodes in tree which have protected values assigned