In OpenAPI, how to define an XML element with attributes AND content?

Unfortunately there's no way to represent that using the OpenAPI Specification 2.0, 3.0, or 3.1

This issue is being tracked here and could be addressed in future versions of the specification.