module MultiXml

def parse_binary(binary, entity) #:nodoc:

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