Storing an XML Response (Transient)?

According to this ticket:

Cannot serialize object wrapping 3rd party library structs. Must
serialize the xml (to a string) and store that to session and reload the
xml when restoring from session

When you are storing object in transient it gets serialized and not all objects are capable of that correctly.

Store textual XML data in transient instead.