IntelliJ IDEA
 
Get IntelliJ IDEA

XPath expression evaluation

Last modified: 06 September 2024

An XPath expression needs evaluation to test it before using in program code or XSLT scripts or before making structured queries against XML documents.

IntelliJ IDEA lets you evaluate XPath expressions in two modes:

  • In the Simple mode, you can enter simple one-line expressions that don't require any customization of namespace prefixes. This mode does not let you configure Context settings or use predefined variables.

  • In the Advanced mode, you can conveniently edit long expressions in a multi-line mode and edit the XPath context.

Some error checks and XPath inspections also provide quick-fixes for detected problems, for example, the possibility to map an unresolved namespace-prefix to a URI by intention.