XMap Getting Started Guide

XMap Getting Started Guide

Writing XPath Expression - Tips

Writing XPath Expression - Tips

Use the following tips to help you create and test XPath expressions more effectively.
Verify that the XPath expression is valid.
To ensure that an XPath expression follows XPath rules, type the expression in the XPath Expressions editor and click
Validate
. An error message appears if the expression is not valid.
Verify that the XPath expression produces the expected results.
Ensure that the XPath expression finds or tests the nodes that you expect it to. To verify that the XPath expression tests the correct nodes, type the expression in the XPath Expressions editor and click
Test Expression
. The XPath editor displays the nodes that the expression produces in the
Result
pane. The
Sequence Length
field displays the number of matching nodes for the expression, and the
Value
field displays the XML output for the expression. If the expression contains an element that is part of a repeating group, the expression is iterated. Each line in the
Results
pane displays the results of a single iteration.

0 COMMENTS

We’d like to hear from you!