Validate an XML response

Validating a response in XML format is almost identical to the standard procedure. For more information about validating an HTTP request, see Global validation.

You may define validations on the XML response using XPath. To recap, XPath is a syntax that points to a portion of an XML document.

NL-XMLResponseValidation-6.4

For an XML request, response validators may be created:

  1. Create a validator.
  2. Select the On a particular node by option and choose XPath in the list box.
  3. Click on the magnifying glass next to the text field below and select the XML node to be validated.
  4. Click OK. The XPath expression for the selected node is displayed in the text field.
  5. Select the text to be validated by clicking on the magnifying glass next to the text field below.