Use the XML tab to specify that the system is to validate incoming XML against a published definition—a Document Type Definition (DTD) or an XML Schema Definition (XSD) file—before the system attempts to parse the XML document.
When you enable XML validation for a Parse XML rule that calls other Parse XML rules, you do not need to enable validation on the called rules. By the time a called rule runs, the entire XML document is validated against the DTD or XSD.
When validation fails, the system adds page messages to the destination clipboard page containing the parsed output, so that page cannot be saved. Optionally if desired, a Java exception can occur.
Field |
Description |
Schema URL |
If the Perform Validation field is not You can enter either an http: or file: url, such as: http://myserver/myproject/myschema.xsd This field supports the Global Resource Settings syntax (=PageName.PropertyName). The default property name for this field is |
Field |
Description |
Perform Validation |
Select:
|
When Rule |
If the Perform Validation field is set to Enter the second key to the rule — the When Name. To find the when condition rule at run time, the system uses the Applies To key part of this parse rule as the Applies To key part of the when condition rule. |
Schema Type |
Specify the type of validation:
|
On Error |
Specify how the Pega Platform reports validation errors:
|
Optional. Used when the Substitution field on the Node tab of the Mapping properties panel is set to Type to set the target Page Class.
If you configure Type Substitution on the root node of the Parse XML rule, you must specify a Context Page on the Mapping tab of the User Data panel.
Field |
Description |
Type name |
Enter the local name of the desired Type Name to be substituted. |
Namespace URI |
Enter the Namespace URI of the Type name. |
Class name |
Specify the class that will override the Context Class on the node where the substitution occurs. |
Optional. Used when the Substitution field on the Node tab of the Mapping properties panel is set to Element to set the target Page Class.
Field |
Description |
Element name |
Enter the local name of the desired element to be substituted. |
Namespace URI |
Enter the Namespace URI of the Element name. |
Class name |
Specify the class that will override the Context Class on the node where the substitution occurs. |