Add New/Edit Field Dialog Box

Use this dialog box to specify a new field.

The name of the field will be used in forming the RRT name. The value of the field is obtained from the XML document by using a specified XPath query and then passed to the subsequent components via RRT.

Option Description
Field name Enter the name of the field.
Note: RRTs should not be used in the Field name text box, since the entered name is used for building RRTs for the subsequent components.
Is required Select this field if you want the component to reject the document if the field takes an empty value. When this option is not selected and the XPath query returns an empty, the component will simply replace the RRT with an empty value and give a warning message.
XPath settings This group of settings allows you to specify the parameters of the XPath query used for retrieval of the information that will replace RRTs for this field.
Namespace prefix If namespaces are used in the XML file and you are going to create an XPath query to receive an element or attribute belonging to a particular namespace, you should specify the namespace prefix in this text box. For example, if your XML file contains the following specification: xmlns:bk='urn:loc.gov:books' and you are going to use an XPath query //bk:title that refers to the <bk:title> element, you should enter bk in this text box.
Namespace URI If namespaces are used in the XML file and you are going to create an XPath query to receive an element or attribute belonging to a particular namespace, you should specify the namespace URI in this text box. For example, if your XML file contains the following specification: xmlns:bk='urn:loc.gov:books' and you are going to use an XPath query //bk:title that refers to the <bk:title> element, you should enter urn:loc.gov:books in this text box.
XPath query Enter the XPath query that will be executed for each input document. You can enter the query text manually or click the Design button to design the query in the XPath Designer dialog box.
Design Click this button to design an XPath query in the XPath Designer dialog box.