The XPath Wizard
3 min
the xpath wizard makes it easy to select a subset of data in an xml data source, when authoring document templates for example, instead of creating a table of all the employees in a company, you could use the wizard to create a table of sales reps only this article introduces the xpath wizard for a detailed how to example that uses the wizard, please see the if tag tutorial docid dalwvbuntint3wduv9ea and else tag tutorial docid\ zqyohxjfdjdpqhwhznx4b to learn more about xpath, please refer to w3schools xpath tutorial at http //www w3schools com/xpath/default asp http //www w3schools com/xpath/default asp the xpath wizard interface the wizard is composed of three panes the conditions pane, the data pane, and the select statement pane the conditions pane is where you create the conditions that will be applied to the data a condition is made up of a node, a comparison, and a value the node (or subnode) is the data upon which you want to create a condition in this example's data source, the node contains the employees' titles the comparison is a drop down list whose options are equal to, not equal to, greater than, greater than or equal to, less than, less than or equal to, contains, and starts with in this example, we chose the comparison "equal to " the value is what the data in the node will be compared to in this example, we chose the value "sales representative " the data pane is what you see when you have created a condition it shows what data will appear when you run a report, and in that way it is similar to the evaluate pane in the tag editor when the condition sits in a foreach loop, only the first item in the data source and not the entire group of items is displayed the select statement pane displays the select statement created by the condition when you click ok to close the wizard, this is the text displayed in the select bar of the tag editor you can create multiple conditions within the wizard if you do so, the wizard gives you the option of determining whether all or any of the conditions must be met