Documentation
oxml-lsp — XML Language Server
Bring instant syntax diagnostics, schema completions, and XPath validations into any LSP-compatible editor.
Installation
Install oxml-lsp from crates.io:
Editor Configuration
Configure your editor to use oxml-lsp for .xml files:
Neovim (nvim-lspconfig)
require'lspconfig'.oxml_lsp.setup{
cmd = { "oxml-lsp" },
filetypes = { "xml", "xsd", "svg" },
}
VS Code & Zed
Add oxml-lsp as the language server binary for XML mode in settings.
Capabilities
- Diagnostics as you type: Catch unclosed tags, attribute duplicates, and mismatched quotes instantly.
- Hover information: View element documentation and attribute types directly under your cursor.
- Formatting on save: Deterministic, whitespace-preserving reformatting.