XML Formatter & XPath Tools icon

XML Formatter & XPath Tools Pro Available

XML formatter for VS Code that changes only the whitespace between tags, with XPath 1.0 on the file's own namespaces and a Copy XPath that selects the element under the cursor. Free, no sign-in, works offline.

MIT / Free Core · Zero telemetry · Works offline · Published by zovo

Pro adds Run XPath on a folder and Format all XML files in a folder. Get Zovo Pro, $19 once →

Version
0.1.1
VS Code Installs
19
Open VSX Downloads
277
Updated
2026-11-12
Extension ID
zovo.zovo-xml-xpath-tools
Editors
VS Code, Cursor, Windsurf, VSCodium
Quick install CLI (VS Code · Cursor · Windsurf)
code --install-extension zovo.zovo-xml-xpath-tools
cursor --install-extension zovo.zovo-xml-xpath-tools
windsurf --install-extension zovo.zovo-xml-xpath-tools

Why use it

  1. Install XML Formatter & XPath Tools.
  2. Open an XML file and press Shift+Alt+F (Shift+Option+F on a Mac). If you have more than one XML formatter, VS Code asks which one to use.
  3. Click the search button in the editor title to run an XPath, or click the XPath in the status bar to copy it.

Common questions

What is free in XML Formatter & XPath Tools?

Format Document, Format Selection, Minify XML, XPath 1.0 with results and line numbers, Copy XPath at the cursor in three styles, the XML Tree view and well-formedness errors in Problems, with no sign-in. Formatting changes only the whitespace between tags.

What does Zovo Pro add?

Three tools, each with 3 free tries on your computer: Run XPath on Every XML File in a Folder (results as CSV, JSON or a Markdown report), Format All XML Files in a Folder, and Compare Two XML Files Ignoring Formatting (and attribute order). A try counts only when the tool gives you a result. They are in the Command Palette, the Explorer right-click menu ("Zovo Pro: ...") and at the end of XPath Results. Zovo Pro is USD 19 once for every Zovo extension; run "Zovo Pro: Get Zovo Pro" to pay or enter a key.

How large a file can it handle?

The tree, XPath and checks run on files up to 60 MB (setting xmlXpathTools.maxFileMB). In the tests a 49 MB file with about 1 million elements formatted in 1.6 seconds. VS Code does not pass files over 50 MB to extensions; right-click one in the Explorer and pick "Format Large XML File on Disk" (UTF-8, UTF-16 with a byte order mark and ISO-8859-1), but the tree and XPath do not run on it.

Does it validate against an XSD or support XPath 2.0?

No. It checks that a file is well formed, but does not validate against an XSD or a DTD. XPath is version 1.0 only, with no XPath 2.0 or 3.1, XQuery or XSLT.

Is it safe with untrusted XML?

Yes. It has no network code (a test checks that no HTTP or socket module is loaded). Entities are never expanded and DTDs are never loaded, so an entity bomb is measured, not expanded, and an external entity such as file:///etc/passwd is not read.

Marketplace README snippet (copy link for VS Code Marketplace)
See full docs & install options at [vscode.zovo.one/extensions/zovo-xml-xpath-tools/](https://vscode.zovo.one/extensions/zovo-xml-xpath-tools/), browse all Zovo VS Code extensions at [vscode.zovo.one](https://vscode.zovo.one/), or explore [Zovo Pro](https://vscode.zovo.one/pro/).
Auto Rename Tag & Close Tag icon

Auto Rename Tag & Close Tag

zovo.zovo-auto-rename-tag

Auto rename tag and auto close tag as you type in HTML, JSX/TSX, Vue, Svelte, PHP, Blade, Twig, XML and Markdown. One undo step for both tags, never pairs <br> or TypeScript generics, highlights the matching tag. Free, no sign-in, works offline.

273 installs v0.2.17 Pro
Run C++ & C: Compile and Run icon

Run C++ & C: Compile and Run

zovo.zovo-run-cpp

Run C++ and C code with one click: compile and run the current file with gcc, g++, clang or clang++. Interactive input in the terminal, an Input panel with saved test cases and diffs, errors in Problems, Stop for endless loops, per-file flags. Free, no sign-in, works offline. Zovo Pro adds a sanitiz

166 installs v0.2.17 Pro
XSD Viewer & Schema Diagram icon

XSD Viewer & Schema Diagram

zovo.zovo-xsd-viewer

XSD viewer for VS Code: open XML Schema (.xsd) files and the schemas in .wsdl files as a tree and a diagram, with imports and includes resolved across the workspace, search and jump to line. Offline, no account.

45 installs v0.1.3 Pro