Masking Key Value Pair XML

  • 0
  • 1
  • Question
  • Updated 2 hours 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:ContentProperties>
          <tns:contentPropertyKey>Policy Account Number</tns:contentPropertyKey>
          <tns:contentPropertyValue>A240004266</tns:contentPropertyValue>
        </tns:ContentProperties>
        <tns:ContentProperties>
          <tns:contentPropertyKey>Policy Number</tns:contentPropertyKey>
          <tns:contentPropertyValue>924111602240</tns:contentPropertyValue>
        </tns:ContentProperties>
        <tns:ContentProperties>
          <tns:contentPropertyKey>State</tns:contentPropertyKey>
          <tns:contentPropertyValue>NE</tns:contentPropertyValue>
        </tns:ContentProperties>

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?

Thanks

Peter
Photo of Peter von Tresckow

Peter von Tresckow

  • 102 Points 100 badge 2x thumb

Posted 6 days ago

  • 0
  • 1
Photo of David Wells

David Wells

  • 60 Points
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. 

Best,
David
Photo of Mouhssine SAIDI

Mouhssine SAIDI

  • 4,632 Points 4k 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.

Regards,

Mouhssine