Set up XML item path
Ha Ngan Nguyen avatar
Written by Ha Ngan Nguyen
Updated over a week ago

Creative Force now supports a part of XPath syntax. Setting up an XML item object path will let Creative Force use XPath in assertions to specify the XML fields that need to be verified.

List of XPath support

XPath uses path expressions to select nodes in an XML document. The node is selected by following a path or steps. The most useful path expressions are listed below

Syntax

Description

/

Selects from the root node

nodename

Selects all nodes with the name "nodename"

*

Matches any element node

Examples valid path

/*/*

/*/*/node

/*/node/*


โ€‹
โ€‹

Did this answer your question?