Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>XPath TesterNew to Visual Studio Code? Get it now.
XPath Tester

XPath Tester

Christopher Reinbacher

|
23,641 installs
| (6) | Free
This extension lets you evaluate XPath expressions from the sidebar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

XPath Tester README

This extension allows you to evaluate simple XPath expressions on the currently opened document. All matches are highlighted.

Features

Current features include:

  • Search for XPath expressions in an XML document and highlight the results
  • Print information about the result to a seperate output log
  • Customize the look of the extension

the extension

Settings

There are a few settings which allow you to customize the look of the extension. You can find them under Settings > Extension > XPath Tester. For information about valid values for each setting please refer to the vscode api reference.

Default values are:

  • Border Style: solid
  • Border Width: 1px
  • Dark Theme Background Color: #FF000055
  • Dark Theme Border Color: darkblue
  • Dark Theme Overview Ruler Color: lightblue
  • Light Theme Background Color: #0022FF55
  • Light Theme Border Color: darkblue
  • Light Theme Overview Ruler Color: darkblue

Please reload/restart the extension in order for changes to take effect!

How to run locally

  1. clone repo
  2. run 'npm install' to install dependencies
  3. run 'npm run watch' to compile the extension
  4. press 'F5' to run the extension

Release Notes

Please refert to the changelog

Future plans

  • add tests
  • finish input validation/improve error handling
  • add some examples on how to use

Thanks

  • thanks to the contributors of the xpath and xmldom projects which are used for this extension
  • thanks to Ben Awad for his tutorial on how to write VSCode extensions. you can check it out here: https://www.youtube.com/watch?v=a5DX5pQ9p5M&t
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft