Masking Key Value Pair XML

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
We are trying to mask some XML, and some of the sensitive data is contained in a repeating key/value pair structure.

          <tns:contentPropertyKey>Policy Account Number</tns:contentPropertyKey>
          <tns:contentPropertyKey>Policy Number</tns:contentPropertyKey>

In this case we'd like to mask the Account and policy, but not the state. since the actual data value is in the generic "contentPropertyValue" element, I cannot easily mask only the fields I want to.

Is there a good way of doing this in the masking engine?


Photo of Peter von Tresckow

Peter von Tresckow

  • 102 Points 100 badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of David Wells

David Wells

  • 202 Points 100 badge 2x thumb
Official Response
Hi Peter, 

The masking engine does not have the capability of distinguishing between key value pairs. To mask that type of structure you are going to need to pre-process the file into an XML format that the masking engine can digest, mask it, and then post-process the file to return it to its original format - using something like XSLT. 

Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 6,126 Points 5k badge 2x thumb
Hi Peter,

Just to complete David’s answer, the pre and post process have to take place out of the masking engine as there no ability to declare a pre-script and post-script for file masking job like you have for database ones.