Customizing a string content type

Modify an existing string content type by adjusting its constraints such as length or pattern to better fit your data requirements.

About this task

You can create a custom string type by starting with an existing one and changing its rules, such as setting a maximum length or a specific pattern. Instead of using the same type for every string or list of strings, this method applies more specific rules that match your requirements. When you customize a type, you are creating a new content type. These rules called constraining facets, follow the standards that are defined in the XML schema.

Procedure

  1. Select the variable where you want to apply the customized content type, then click the Edit icon
  2. Click the Content type drop-down menu and choose the content type that you want to customize.
    The constraining facet fields appear in the content type list.
  3. Enter the values for the constraining facets you want to apply, then click Save.
    Note: The available constraining facets depend on the primitive type of the selected content type. Primitive types are basic data types like string, number, or Boolean. For example, if the primitive type is string, you see facets such as Enumeration, Length, Minimum Length, Maximum Length, Whitespace, and Pattern. For more information about primitive types, see XML Schema Part 2: Datatypes at http://www.w3.org/TR/xmlschema-2/.