|
XMLSPY supports a Regular Expression Builder in XML Schema Design view. To access this functionality, select an XML Schema element of type string in the graphical design page. Then, go to the Facets Window and choose the Patterns tab. Click the Insert New Pattern button, which is located in the top-left corner of the Facets window. Click the down arrow on the new row that you created. A drop-down list of common regular expressions appears, as shown in Figure C-1.
Figure C-1: The XMLSPY Regular Expression Builder.
In XML Schema, a string element can contain multiple patterns, and a data element is considered to be valid if it satisfies any one of the specified regular expression patterns. To add an additional pattern constraint, click the Insert button.
|