XMLMind XML Editor is a desktop editor for writing and changing XML documents. It is aimed at people who work with structured XML and need the file checked against its schema while they edit.
The editor validates documents strictly and shows content in a near WYSIWYG layout rather than raw markup. It runs on macOS and is listed through Homebrew. The facts available do not state a license or pricing model, so check the project website for those details.
Alternatives to XMLMind XML Editor
Products that do a similar job in Notes & Writing.
CotEditor
Plain-text editor for macOS aimed at web pages and source code
Marked
Markdown previewer for Mac that renders live as you edit
MarkText
Realtime preview markdown editor for distraction-free writing
Obsidian
Knowledge base built on a local folder of plain Markdown files
Notion
all-in-one workspace for notes, docs and planning
Joplin
Note taking app that keeps notes under your control with optional sync
Logseq
Local-first outliner for linked notes and a personal knowledge graph
Trilium Notes
Hierarchical note-taking app for building a personal knowledge base