XML Mask (XmlMaskGenerator)
The XML Mask generator runs a selected generator on values that match a user specified path expression.
Link object structure
For the XML Mask generator, there is a link object for each path expression value to assign a sub-generator to.
The generator does not itself support consistency or differential privacy.
The metadata
object is populated from the XmlMaskMetadata
object. It includes:
pathExpression
, which is the expression that identifies the value to apply the sub-generator to.The
subGeneratorMetadata
object, which identifies and configures the sub-generator.
Example replacement
In the following example replacement for the XML Mask generator:
The Name generator is assigned to the path expression
//view/item-descriptor//@display-name
. The value is in the format First Name Last Name (John Smith), and capitalization is not preserved. Consistency is disabled.The Constant generator is assigned to the path expression
//view//object-class
. The constant value isobject-class
.
Last updated