Skip to content

XPath Evaluation

Josh Johnson edited this page Jan 19, 2016 · 2 revisions

To evaluate XPath queries, simply use the XML Tools: Evaluate XPath command. Upon invoking this command, Code will prompt you for your XPath query. When you have finished typing a query, press Enter. Your results will be listed in a new output pane to the right of your open XML document.

💡 Pro Tip
By default, the extension will remember the last XPath your used.
Find that annoying? Set the xmlTools.persistXPathQuery setting to false in your user or workspace settings file.