How to convert case class to xml and vice versa?

Hi Team,

I have a scala/playframework rest api system, I will use akka http to post xml data requests to a remote server and in return receive xml response.

Could someone please share a sample code or link that will guide me on below steps;

convert case class object to xml

convert xml response received from remote server to case class object.