XML configuration file template

You can use the template in this topic to create a configuration file to mask data in an XML file by doing the following. Copy and paste the configuration file template into a text editor, and modify the template to meet your needs. Then, name the configuration file and save it for use with the data privacy application.

Before you create your first configuration file to mask data in an XML file, read XML keyword definitions. After you are comfortable creating XML-related configuration files, refer to the Quick reference guide to XML keywords and values for a concise description of each XML-related keyword.

The keywords in the following template are shown in uppercase letters, but you can enter them in uppercase or lowercase letters, or any combination of the two. An equal sign is used to separate each keyword from its user-assigned value, such as FILETYPE=XML.

In the template, each keyword appears on a separate line, followed by an example of how to use the keyword. In some cases, additional text is also provided. The examples and additional text are preceded by a pound symbol (#) that identifies the ensuing text as a comment. Since the comments are ignored during processing, you can delete them from your configuration, if you prefer.

REPORT=
# Example: REPORT=<report directory path or URI and report name>

REPLACE=
# Example: REPLACE=No

WORKITEM=
# Example: WORKITEM="work item name"

INPUT=
# Example: INPUT=<input directory path or URI>

OUTPUT=
# Example: OUTPUT=<output directory path or URI>

FILEPATTERN=
# Example: FILEPATTERN=US_CUST*

FILETYPE=
# Example: FILETYPE=XML

PARALLEL=
# Example: PARALLEL=High

STRICTMETADATA=
# Example: STRICTMETADATA=Yes

BULKSIZE=
# Example: BULKSIZE=100

CHARSETNAME=
# Example: CHARSETNAME=UTF-8

CONTINUEONERROR=
# Example: CONTINUEONERROR=Yes

MAXERRORFILE=
# Example: MAXERRORFILE=100

MAXERRORRUN=
# Example: MAXERRORRUN=1000

ACTION=Masking
# Must be ACTION=Masking

NODE=
# NODE=<base path to masking fields or “key” fields
# Example: NODE=/customers/customer/

FIELD=
# Example: FIELD=email

DATATYPE=
# Example: DATATYPE=WVARCHAR_SZ
# If not specified, defaults to data type in the masking string or WVARCHAR_SZ.

PATH=
# PATH=<partial path to each masking field or “key” field>
# Example: PATH=email_address
# NODE + PATH = full XPath, such as /customers/customer/email_address

DATAPRESENCE=
# Example: DATAPRESENCE=Warn

KEY=
# Example: KEY=1  (Not allowed for masking fields.)

MASK=
# MASK="<masking PROVIDER, field definition (FLDDEFn), and masking syntax>"
# Example: FIELD=CREDITCARD_NUMBER,MASK="PROVIDER=CCN,FLDDEF1=(NAME=CREDITCARD_NUMBER,-
-DT=WVARCHAR_SZ,LEN=80),MTD=repeatable,WHENINV=PRE"