module MultiXml

def self.parse_binary(binary, entity) #:nodoc:

:nodoc:
TODO: Add support for other encodings
def self.parse_binary(binary, entity) #:nodoc:
  case entity['encoding']
  when 'base64'
    Base64.decode64(binary)
  else
    binary
  end
end