Skip to main content

Developer & Code

XPath expression Code Processor

Process code with XPath expression and review the transformed output. Enter the code, choose the processing options, then copy the result.

Tool workspace

Your input stays in this browser.

Add the required input to continue.

Needs input

You can run the tool again after any change.

Options

Your result appears here

Process code with XPath expression and review the transformed output. Enter the code, choose the processing options, then copy the result.

This tool runs open-source code from CyberChef by GCHQ (Apache License 2.0). See open-source credits.

XPath expression Code Processor processes developer text in your browser. For a correct result, check namespaces and document shape.

the selected XML node or value Processing runs in the browser.

Instructions

  1. Provide text or data for this tool.
  2. Run the expression against compatible XML.
  3. Review the output against a small known XPath expression Code Processor example.
  4. Keep the source code or markup until the result passes its target parser.

Example

Input: /bookstore/book[1]/title

Settings: XPath expression Code Processor: run the expression against compatible XML

Result: the selected XML node or value

Limits

  • XPath expression Code Processor: XPath results depend on the XML context
  • XPath expression Code Processor: The operation does not detect a different language automatically.
  • XPath expression Code Processor: Processing stays in the browser.