- When is XML string-encoded?
- Inside JSON fields (logs, APIs), inside YAML values, or inside environment variables. Any text transport that doesn't natively support XML markup.
- Does it escape or unescape?
- Unescape — takes an escaped string and produces parsed XML. Pair with xml-to-string for the reverse direction.
- What if the content has encoding declarations?
- The BOM and `<?xml encoding="..."?>` declaration are preserved when present. The tool detects common encodings automatically.
- Will it validate the result?
- Well-formedness yes. For DTD/XSD validation use XML Validator after conversion.