XML Search PropertiesCopy link to this sectionLink to this section copied!

File PathCopy link to this sectionLink to this section copied!

This field specifies the search path and the XML filename on which the search operation will be executed. This field is of Formatted Type and can be edited using the Smart Edit Control. The name of the XML Search operation will also display this path.

LocatorsCopy link to this sectionLink to this section copied!

This field will display in the left pane the XML Search Elements which contain the XML locators based on which the search operations are performed. Multiple XML elements can be defined and under every XML element multiple XML locators can be created. For every XML element the locators can be declared or modified in the XML Locator view in the right pane.

XML Search ElementsCopy link to this sectionLink to this section copied!

In this panel you can create, delete or modify the position in the node hierarchy of the XML elements. The following operations are possible:

New ElementCopy link to this sectionLink to this section copied!

A new XML element can be created by selecting [ New Element ] from the context menu or by pressing the Insert key while the left panel if focused.

Rename an elementCopy link to this sectionLink to this section copied!

To rename an XML element select [ Rename ] from the context menu or press the F2 key while the element is selected.

Move UpCopy link to this sectionLink to this section copied!

To move the selected node up use [ Move Up ] option from the context menu or press Shift+Up Arrow key keys while the element is selected.

Move DownCopy link to this sectionLink to this section copied!

To move the selected node down use [ Move Down ] option from the context menu or press Shift+Down Arrow key keys while the element is selected.

Move LeftCopy link to this sectionLink to this section copied!

To move the selected node to the left use [ Move Left ] option from the context menu or press Shift+Left Arrow key keys while the element is selected.

Move RightCopy link to this sectionLink to this section copied!

To move the selected node to the right use [ Move Right ] option from the context menu or press Shift+Right Arrow key keys while the element is selected.

Delete an elementCopy link to this sectionLink to this section copied!

To delete an element use [ Delete ] from the context menu or press the Delete key while an element is selected.

Warning!The hierarchy of the XML elements defined here must be the same with the one from the actual XML file. If the structure is different in the XML file no search operation can be performed.

TipOnce an XML element is created it is possible to assign one or multiple XML locators from the XML Locator panel.

XML LocatorCopy link to this sectionLink to this section copied!

This panel will display the XML locator assigned for the selected XML element from the XML Search Elements panel. Based on this XML locator the XML Search operation will be performed. It is possible to declare multiple XML locators for one XML element.

Create an XML locatorCopy link to this sectionLink to this section copied!

To create a new XML locator press the [ Add... ] button, use "Add..." context menu option or press the Insert key while the list is focused. The Edit XML Locator Dialog will appear.

Modify an XML locatorCopy link to this sectionLink to this section copied!

To modify an existing XML locator press the [ Edit... ] button, use "Edit..." context menu option or press the Space key while an element is selected. The Edit XML Locator Dialog will appear.

Delete an XML locatorCopy link to this sectionLink to this section copied!

To delete an existing XML locator press the [ Remove ] button, use "Remove" context menu option or press the Delete key while an element is selected.

NoteIf multiple XML Locators are defined you can modify the order in which the searches are performed. The order in this list is the order in which the search operations are executed.

Move Up an XML locatorCopy link to this sectionLink to this section copied!

To move an XML locator up press the [ Up ] button, use the "Move Up" context menu option or press the PageUp key while an XML locator is selected.

Move Down an XML locatorCopy link to this sectionLink to this section copied!

To move an XML locator down press the [ Down ] button, use the "Move Down" context menu option or press the PageDown key while an XML locator is selected.

Warning!If one of the search operations assigned to an XML element fails, all the search operations assigned to that element will fail and no search result property will be set for any of the search operations assigned to that element.

TipIf you want each search to be evaluated individually you can define the same element multiple times, maintaining the same hierarchy, and assign to each instance an XML locator.

Edit XML Locator DialogCopy link to this sectionLink to this section copied!

Edit XML Locator

XML LocatorCopy link to this sectionLink to this section copied!

ValueCopy link to this sectionLink to this section copied!

In this field, you can define the value of the search operation. This field corresponds to the Value field from the XML Locator panel.

Caution!If an Element has index in the parent criteria is selected the value field must contain only integer numbers and is a 0 based value. In case a string is supplied the search operation's found value will always return the current element.

StoreCopy link to this sectionLink to this section copied!

If this checkbox is enabled the search operation's found value will be stored inside a property.

This field corresponds with the Result Type field from the XML Locator panel. The type of the search operation's found value can be one of the following:

  • Attribute name
  • The name of the element's attribute that meets the search criteria will be returned by the search operation.
  • Attribute value
  • The value of the element's attribute that meets the search criteria will be returned by the search operation.
  • Exists element
  • The name of the element that meets the search criteria will be returned by the search operation.
  • Element text
  • The text contained by the element that meets the search criteria will be returned by the search operation.

inCopy link to this sectionLink to this section copied!

In this field, you can specify the Advanced Installer property where the resulted value will be stored. You can write the name of the property or use the [ ... ] button to display the Property Picker Dialog and select a property. This field corresponds with the Result Property field from the XML Locator panel.

TipIt is highly advised to use public properties. A public property has its name written in capital letters. If in this field a property is written which is not previously declared, it will be created only if the search proves to be successful; otherwise, it will not exist.

The following combinations for an XML locator are possible:

SearchResult Type
Attribute nameAttribute value
Exists element
Element text
Attribute valueAttribute name
Exists element
Element text
Element textElement text
Element has index in the parentExists element
Element text