The XML Lens library
A little clarity for every XML task.
Practical explanations, small examples, and workflows you can use on your Mac.
Learn the essentials.
Work through a problem, one example at a time.
How to fix XML parse errors
Find and fix common XML parse errors: mismatched tags, unescaped ampersands, missing quotes, and multiple roots, with before-and-after examples.
Read guide →XPath explainedWhy XPath returns no results with a default namespace
Understand why XPath 1.0 misses elements in a default XML namespace, and use namespace-aware expressions with a worked catalog example.
Read guide →XML fundamentalsWell-formed XML vs. XSD-valid XML
Learn the difference between XML syntax checks and XSD validation, with a complete quantity schema and examples that pass or fail each check.
Read guide →Find your workflow.
In-depth guides to the tools inside XML Lens.
Convert XML to Markdown locally on Mac
Convert XML to clean Markdown on macOS with smart tables, outlines, and code fences. Copy a Visual Map subtree or save a .md file locally—nothing is uploaded.
View and format XML Schema (XSD) locally on Mac
Browse XSD structure, search declarations, format or minify source, and compile self-contained schemas locally in a native macOS workspace.
See any XML document as an interactive map
Visualize XML on macOS as an interactive node map. Pan, zoom, collapse branches, inspect namespaces and values, and jump back to source—without uploading files.
Merge XML files locally on Mac
Merge XML files on macOS without uploading. Wrap documents under a new root, or combine children when roots already match. Review the result locally, then save or open it in the editor.
View and format XML locally on Mac
A native macOS XML viewer and formatter with syntax highlighting, structure navigation, search, zoom, and local file workflows.
Compare XML files side by side on Mac
Compare two editable XML documents on macOS with line-level highlighting, pasted or dragged input, and Markdown, HTML, or PDF diff reports.
Query XML with XPath 1.0 on your Mac
Run XPath 1.0 queries against an open XML document with match previews, namespace-aware navigation, saved snippets, and local processing.
Convert XML, JSON, YAML, and CSV locally on Mac
Convert XML to JSON, YAML, or CSV on macOS, with explicit loss warnings for mixed content, namespaces, ordering, comments, and other XML details.
Validate XML and run local XSLT 1.0 on Mac
Check XML well-formedness, validate against XSD, and transform an open document with local XSLT 1.0 while blocking remote stylesheet resources.
Batch-process XML files on Mac without overwriting originals
Run formatting, minification, validation, conversion, or local XSLT operations across selected XML files with a chosen output folder.