How to handle acronyms in various programming naming conventions

Well like that:

Yes No
Pascal XmlHttpRpcSerializer XMLHTTPRPCSerializer
XmlFile XMLFile
Snake case xml_http_rpc_serializer XML_HTTP_RPC_serializer
xml_file XML_file
Camel case xmlHttpRpcSerializer xMLHTTPRPCSerializer
xmlFile XMLFile

The rationale is that the ability to distinguish different words, to being able to read the function/type/variable name especially in sequences of acronyms, and the case convention, for consistency purposes, take precedence over using upper case for the acronym.

However the acronyms must be spelled correctly in a programming comment where there are no restrictions.

1
// Implements the XML HTTP RPC serializer