IGNORE examples

In the following examples, a comma (,) is used as the separator among Par1, Par2, and Par3 <IGNORE> values (this is the c character in the <IGNORE> syntax).

Example 1

A text item is defined with this initiator: <IGNORE,ab,cdef,gh>John

The following data validates successfully:

abghJohnSmith

The following data is built on output:

cdefJohnSmith

Example 2

A text item is defined with this initiator: <IGNORE,,xsd:,:>Bill

The following data validates successfully:

xs:BillSmith

The following data is built on output:

xsd:BillSimth

Example 3

A text item is defined with initiator <<IGNORE,,,:>Color> and terminator </Color>.

The following data validates successfully:

<ab:Color>Blue</Color>

The following data is built on output:

<Color>Blue</Color>

Example 4

A text item is defined with initiator <<IGNORE,,,:>Color> and terminator </Color>.

The following data validates successfully:

<Color>Blue</Color>

Although the colon (:) does not appear anywhere in the input data, the validation process recognizes that no data should be ignored because the Color value in the data matches the Color value in the initiator, so in that case, the <IGNORE> symbol in the initiator will not ignore any data on input.

On output, the data is the same as on input:

<Color>Blue</Color>

This is because the second parameter (Par2) in the <IGNORE> symbol was specified as "empty".