How to use the XML / XPath / SOAP Inspector
Parse, format, query, and debug XML, SOAP envelopes, and SAML assertions in your browser. Walk the tree, run XPath expressions with namespace-aware resolution, inspect SOAP 1.1 / 1.2 operations and faults, build a copy-paste cURL, and redact passwords / tokens / WS-Security values before sharing. Useful for legacy enterprise integrations, SAML troubleshooting, B2B partner debugging, and any XML payload that won't behave.
How to use it
- Paste your XML document, SOAP request / response, or SAML assertion.
- Open the Tree tab to walk the structure — click any node to see suggested XPath expressions.
- Open XPath to evaluate an expression with the namespace resolver; use the no-match debugger if it returns nothing.
- Open SOAP for the operation, header, body, and parsed Fault details (1.1 or 1.2).
- Open Redaction to mask passwords, tokens, JWT-shaped values, and WS-Security secrets.
- Generate a cURL snippet to reproduce the SOAP call, or hand off to XML → JSON, JSON Formatter, Text Diff, or other tools.
When to reach for this tool
- You copied a SOAP response from a legacy integration and need to find the operation, status, or fault detail quickly.
- An XPath returned “no matches” and you suspect a default-namespace issue.
- You need to share a SOAP payload with a teammate but it carries WS-Security tokens, passwords, or session IDs that must be redacted first.
- You want a copy/paste cURL for the SOAP service to reproduce the call.
What it does
- Parser & formatter: validates well-formedness, pretty-prints or minifies, and reports parse errors with line/column when the browser provides them.
- Tree inspector: a collapsible view of elements, attributes, text, CDATA, and comments. Selecting a node generates stable XPath suggestions (absolute, namespace-aware,
local-name(), attribute-based, text-based).
- XPath tester: evaluates expressions against the parsed document with an editable namespace resolver and a no-match debugger that suggests fixes for default namespaces, prefix typos, attribute selection, and SOAP-body context errors.
- Namespace inspector: lists every
xmlns declaration, assigns stable generated prefixes (ns1, ns2…), and lets you remap them for XPath.
- SOAP inspector: recognizes SOAP 1.1 and 1.2 envelopes, extracts header blocks, body, operation, and parses Fault details (faultcode/faultstring/detail for 1.1; Code/Subcode/Reason/Node/Role/Detail for 1.2).
- cURL snippets: generates SOAP 1.1 or 1.2 cURL with the correct
Content-Type and SOAPAction conventions for Bash, PowerShell, or CMD.
- Search & extract: by element, attribute, text, namespace URI, or sensitive value.
- Redaction: detects passwords, tokens, API keys, JWT-shaped values, Base64-shaped strings, and high-entropy secrets in element text, attribute values, and SOAP headers; produces a redacted XML safe to share.
- Workflow handoffs: send whole document, SOAP body, operation, fault detail, or XPath results to XML → JSON, JSON Formatter, Text Diff, cURL Converter, HTTP Headers, URL Parser, JWT & OAuth, Base64, and Line Tools.
Privacy
XML parsing, formatting, XPath evaluation, SOAP inspection, namespace analysis, redaction, snippet generation, and export are all performed in your browser. No XML, headers, URLs, tokens, or XPath expressions are sent to a server. External DTDs and entities are never fetched. The tool does not execute any HTTP request; the cURL snippet is a copy-paste artifact only.
FAQ
Does this upload my XML?
No. Everything runs locally in your browser tab.
Why does my XPath return no matches?
The most common reason is a default namespace. In XPath, unprefixed names match the “no namespace” — even if the source XML declares xmlns="…". Use a generated prefix from the Namespaces tab, or fall back to //*[local-name()='YourElement'].
What is the difference between SOAP 1.1 and SOAP 1.2?
SOAP 1.1 uses the http://schemas.xmlsoap.org/soap/envelope/ namespace and a SOAPAction HTTP header with text/xml content type. SOAP 1.2 uses http://www.w3.org/2003/05/soap-envelope and an application/soap+xml content type with the action embedded in the Content-Type. Faults also have different shapes — this tool extracts both.
Can I convert XML to JSON?
Use the Next-steps tab or the SOAP body actions to hand off to the XML to JSON Converter. The handoff is browser-side.
Can I redact secrets before sharing?
Open the Redaction tab. The tool finds passwords, tokens, JWT/Base64-shaped values, and WS-Security elements, then emits an XML with the sensitive values replaced by <redacted>.
Runs locally in your browser. No uploads.