module ActiveSupport::XmlMini

def _parse_binary(bin, entity)

TODO: Add support for other encodings
def _parse_binary(bin, entity)
  case entity["encoding"]
  when "base64"
    ::Base64.decode64(bin)
  else
    bin
  end
end