Build XML Schema
- Last UpdatedAug 30, 2024
- 2 minute read
You can build a XML Schema in two ways:
-
Define schema in the XML Variable interface
-
Adding a Node
-
Editing a Node
-
Deleting a Node
-
-
Loading schema from an existing file
Defining Schema in the XML Variable Interface
When a new variable is created, the schema displays the root node by default. Click the string "root"and type the name over it.
The following image shows the node options:

To add a node
-
To add a node, click the Properties icon to the right of the name. Select Add. The Properties window for the new node appears.
-
Specify the following properties of the node:
-
Name: Enter a name of the node.
-
Type: Select the node type. The options available are element and attribute.
-
Data Type: Select the data type. This property specifies the data type of the XML Node. The available data types are string, integer, long, double, decimal, date, time, dateTime, boolean, and base64binary.
-
Repeating: Select this check box, if the node is a repeating one.
-
-
Click OK.
-
Click Save Variable to save node properties.
-
Click OK.
-
To add more nodes, repeat step 1 to step 6.
Note: Select the respective node where you want add a node. If a node is of Attribute type, then you cannot add a node under it. The Add option will be disabled for Attribute type of node.
To edit an existing node
-
To edit an existing node, click the Properties icon to the right of the node to be edited.
-
Select Edit. The Properties window for the existing node appears.
-
Modify properties in the Properties window.
-
Click OK.
-
Click Save Variable to save node properties.
-
Click OK.
To delete a node
-
To delete a node, click the Properties icon to the right of the node to be deleted.
-
Select Delete.
To load Schema from an Existing File
-
Click Choose File to select file with schema information. You can select either InfoPath forms or XML files to load schema

-
The XML schema is loaded from the file.
-
To edit a node, right-click the node, and then select Edit. Modify properties in the Properties window.
-
To delete a node, right-click the node, and then select Delete