We have a string field which can contain XML or plain text. The XML contains no header, and no root element, i.e. is not well formed.
header, and no root element, i.e. is not well formed.
We need t
One possibility is to mix both solutions. You can use your redact method and try to load it (inside the if). This way, you'll only try to load what is likely to be a well-formed xml, and discard most of the non-xml entries.