XML Formatter + XPath Tester
XPath
Security notes
Verified directly (not assumed): DOMParser never resolves external
entities or fetches external/remote DTDs — a classic XXE payload referencing
file:///etc/passwd or a remote URL both resolve to nothing, and no network
request is made either way. A "billion laughs"-style internal entity-expansion bomb is
rejected by the browser's own XML parser (a built-in maximum entity amplification factor)
as a clean validation error rather than hanging or crashing the tab. XPath result previews
are capped at 200 matching nodes shown at once — the reported match count is still
exact even when there are more than that.
Known limitations
A DOCTYPE's internal subset (custom entity declarations, etc.) is not reconstructed on
format/minify — only the doctype name and PUBLIC/SYSTEM identifiers are preserved. Mixed
content (text and elements interleaved, like a paragraph with inline <b>
tags) is left exactly as found rather than reformatted, since there's no reformatting rule
that couldn't risk changing its meaning.