For XML Akka HTTP currently provides support for Scala XML right out of the box through it’s
The ScalaXmlSupport trait provides a
ToEntityMarshaller[NodeSeq] that you can use directly or build upon.
In order to enable support for (un)marshalling from and to XML with Scala XML
NodeSeq you must add the following dependency:
"com.typesafe.akka" %% "akka-http-xml" % "10.0.9"
Once you have done this (un)marshalling between XML and
NodeSeq instances should work nicely and transparently, by either using
import akka.http.scaladsl.marshallers.xml.ScalaXmlSupport._ or mixing in the