decodeFromString

Reads an application/problem+xml document, tolerating the deviations RFC 9457 §3 asks a consumer to tolerate: an unrecognised member, a wrong-typed one, a missing namespace.

Throws

if xml is not a well-formed problem document: malformed XML, a root element other than problem, or nesting deeper than Problem.MAX_NESTING_DEPTH. The underlying parser's own exception is attached as the cause.