xml
fun <IN : Any> BiDiLensSpec<IN, String>.xml(config: XmlParsingConfig = defaultXmlParsingConfig): BiDiLensSpec<IN, Document>
Convenience function to write the object as XML to the message body and set the content type.
Convenience function to read an object as XML from the message body.
fun Body.Companion.xml(description: String? = null, contentNegotiation: ContentNegotiation = ContentNegotiation.None, config: XmlParsingConfig = defaultXmlParsingConfig): BiDiBodyLensSpec<Document>